loadfile: reuse circle definitions in command.h

This commit is contained in:
Guido Cella
2024-10-24 11:10:55 +02:00
committed by Kacper Michajłow
parent 3ea8d751f5
commit b1037f5d63
3 changed files with 6 additions and 8 deletions
+2 -6
View File
@@ -157,15 +157,11 @@ struct load_action {
bool play;
};
// U+25CB WHITE CIRCLE
// U+25CF BLACK CIRCLE
// U+00A0 NO-BREAK SPACE
#define WHITECIRCLE "\xe2\x97\x8b"
#define BLACKCIRCLE "\xe2\x97\x8f"
#define NBSP "\xc2\xa0"
const char list_current[] = BLACKCIRCLE NBSP;
const char list_normal[] = WHITECIRCLE NBSP;
const char list_current[] = BLACK_CIRCLE NBSP;
const char list_normal[] = WHITE_CIRCLE NBSP;
static int edit_filters(struct MPContext *mpctx, struct mp_log *log,
enum stream_type mediatype,
+4
View File
@@ -122,6 +122,10 @@ void mark_seek(struct MPContext *mpctx);
void mp_abort_cache_dumping(struct MPContext *mpctx);
// U+25CB WHITE CIRCLE
// U+25CF BLACK CIRCLE
#define WHITE_CIRCLE "\xe2\x97\x8b"
#define BLACK_CIRCLE "\xe2\x97\x8f"
char *mp_format_track_metadata(void *ctx, struct track *t);
#endif /* MPLAYER_COMMAND_H */
-2
View File
@@ -234,8 +234,6 @@ static void uninit_demuxer(struct MPContext *mpctx)
talloc_free(demuxers);
}
#define BLACK_CIRCLE "\xe2\x97\x8f"
#define WHITE_CIRCLE "\xe2\x97\x8b"
#define APPEND(s, ...) mp_snprintf_cat(s, sizeof(s), __VA_ARGS__)
#define FILL(s, n) mp_snprintf_cat(s, sizeof(s), "%*s", n, "")