diff options
author | Mamadou DIOP <bossiel@yahoo.fr> | 2016-02-26 01:38:27 +0100 |
---|---|---|
committer | Mamadou DIOP <bossiel@yahoo.fr> | 2016-02-26 01:38:27 +0100 |
commit | b8cb2d5cf5c2beb5de175a0b6a95502a54d3e936 (patch) | |
tree | 3cd30efa859d8c4a7168260c77dbc3d2f642a75a /tinyMEDIA/include | |
parent | c6a8fde4aaf6fd5185814525fcee3193fedef67d (diff) | |
download | doubango-b8cb2d5cf5c2beb5de175a0b6a95502a54d3e936.zip doubango-b8cb2d5cf5c2beb5de175a0b6a95502a54d3e936.tar.gz |
Fix codec priority setting issue. The codec is removed when the priority value is > the total number of registered codecs. This happens when few codecs are registered
Diffstat (limited to 'tinyMEDIA/include')
-rwxr-xr-x | tinyMEDIA/include/tinymedia/tmedia_codec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tinyMEDIA/include/tinymedia/tmedia_codec.h b/tinyMEDIA/include/tinymedia/tmedia_codec.h index 6dcd2be..63e6fc9 100755 --- a/tinyMEDIA/include/tinymedia/tmedia_codec.h +++ b/tinyMEDIA/include/tinymedia/tmedia_codec.h @@ -314,6 +314,7 @@ TINYMEDIA_API tsk_bool_t tmedia_codec_plugin_is_registered(const tmedia_codec_pl TINYMEDIA_API tsk_bool_t tmedia_codec_plugin_is_registered_2(tmedia_codec_id_t codec_id); TINYMEDIA_API int tmedia_codec_plugin_registered_get_all(const struct tmedia_codec_plugin_def_s*(** plugins)[TMED_CODEC_MAX_PLUGINS], tsk_size_t* count); TINYMEDIA_API const struct tmedia_codec_plugin_def_s* tmedia_codec_plugin_registered_get_const(tmedia_codec_id_t codec_id); +TINYMEDIA_API tsk_size_t tmedia_codec_plugin_registered_count(const struct tmedia_codec_plugin_def_s** plugins, tsk_size_t count); TINYMEDIA_API int tmedia_codec_plugin_unregister(const tmedia_codec_plugin_def_t* plugin); TINYMEDIA_API int tmedia_codec_plugin_unregister_all(); TINYMEDIA_API tmedia_codec_t* tmedia_codec_create(const char* format); |