mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
avviddec: exclude non-video decoders
Otherwise audio decoders "ignored", ie blacklisted, end up registered by avviddec as video decoders. https://bugzilla.gnome.org/show_bug.cgi?id=685113
This commit is contained in:
parent
07cec6d216
commit
f1071cc1b1
1 changed files with 2 additions and 3 deletions
|
@ -1690,10 +1690,9 @@ gst_ffmpegviddec_register (GstPlugin * plugin)
|
|||
gchar *type_name;
|
||||
gchar *plugin_name;
|
||||
|
||||
/* only decoders */
|
||||
if (!in_plugin->decode) {
|
||||
/* only video decoders */
|
||||
if (!in_plugin->decode || in_plugin->type != AVMEDIA_TYPE_VIDEO)
|
||||
goto next;
|
||||
}
|
||||
|
||||
/* no quasi-codecs, please */
|
||||
if (in_plugin->id == CODEC_ID_RAWVIDEO ||
|
||||
|
|
Loading…
Reference in a new issue