From d63fb8ba992a6b610615bde9c678f4b111bba667 Mon Sep 17 00:00:00 2001 From: reimar Date: Sat, 12 Jan 2008 14:05:46 +0000 Subject: Replace the persistent CODECS_FLAG_SELECTED by a local "stringset" with an almost-trivial implementation. This allows making the builtin codec structs const, and it also makes clearer that this "selected" status is not used outside the init functions. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25689 b3059339-0415-0410-9bf9-f77b7e298cf2 --- codec-cfg.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'codec-cfg.h') diff --git a/codec-cfg.h b/codec-cfg.h index f2755f7d2c..4f6705bef2 100644 --- a/codec-cfg.h +++ b/codec-cfg.h @@ -10,7 +10,6 @@ // Global flags: #define CODECS_FLAG_SEEKABLE (1<<0) #define CODECS_FLAG_ALIGN16 (1<<1) -#define CODECS_FLAG_SELECTED (1<<15) /* for internal use */ // Outfmt flags: #define CODECS_FLAG_FLIP (1<<0) @@ -65,9 +64,13 @@ codecs_t* find_audio_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start, int force); codecs_t* find_codec(unsigned int fourcc, unsigned int *fourccmap, codecs_t *start, int audioflag, int force); -void select_codec(char* codecname,int audioflag); void list_codecs(int audioflag); -void codecs_reset_selection(int audioflag); void codecs_uninit_free(void); +typedef char ** stringset_t; +void stringset_init(stringset_t *set); +void stringset_free(stringset_t *set); +void stringset_add(stringset_t *set, const char *str); +int stringset_test(stringset_t *set, const char *str); + #endif /* CODEC_CFG_H */ -- cgit v1.2.3