avvidenc: also skip non-video encoders

Doesn't actually make any difference at the moment, but
seems the right thing to do.

https://bugzilla.gnome.org/show_bug.cgi?id=685113
This commit is contained in:
Tim-Philipp Müller 2012-09-30 16:25:29 +01:00
parent f1071cc1b1
commit 451a6c2ecf

View file

@ -970,10 +970,9 @@ gst_ffmpegvidenc_register (GstPlugin * plugin)
goto next;
}
/* only encoders */
if (!in_plugin->encode) {
/* only video encoders */
if (!in_plugin->encode || in_plugin->type != AVMEDIA_TYPE_VIDEO)
goto next;
}
/* FIXME : We should have a method to know cheaply whether we have a mapping
* for the given plugin or not */