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:
Alban Browaeys 2012-09-30 01:27:10 +02:00 committed by Tim-Philipp Müller
parent 07cec6d216
commit f1071cc1b1

View 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 ||