avviddec: exclude non-video decoders
authorAlban Browaeys <prahal@yahoo.com>
Sat, 29 Sep 2012 23:27:10 +0000 (01:27 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 30 Sep 2012 15:24:18 +0000 (16:24 +0100)
Otherwise audio decoders "ignored", ie blacklisted, end up
registered by avviddec as video decoders.

https://bugzilla.gnome.org/show_bug.cgi?id=685113

ext/libav/gstavviddec.c

index 4d384a4..669a75d 100644 (file)
@@ -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 ||