From 451a6c2ecf959639bca8a83371e3b0209789c015 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 30 Sep 2012 16:25:29 +0100 Subject: [PATCH] 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 --- ext/libav/gstavvidenc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index 2ef4acb..b747613 100644 --- a/ext/libav/gstavvidenc.c +++ b/ext/libav/gstavvidenc.c @@ -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 */ -- 2.7.4