diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-12 14:05:46 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-12 14:05:46 +0000 |
commit | d63fb8ba992a6b610615bde9c678f4b111bba667 (patch) | |
tree | 6ffd89cc8a88b2c37a2a55daffa3d27c03c61b25 /codec-cfg.h | |
parent | eb96cc741e216ac2d0383671f280fe7484cfd334 (diff) | |
download | mpv-d63fb8ba992a6b610615bde9c678f4b111bba667.tar.bz2 mpv-d63fb8ba992a6b610615bde9c678f4b111bba667.tar.xz |
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
Diffstat (limited to 'codec-cfg.h')
-rw-r--r-- | codec-cfg.h | 9 |
1 files changed, 6 insertions, 3 deletions
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 */ |