summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2012-09-30 16:25:29 +0100
committerTim-Philipp Müller <tim@centricular.net>2012-09-30 16:25:29 +0100
commit451a6c2ecf959639bca8a83371e3b0209789c015 (patch)
treecb5646749f48f513fe3b768e62b1f2b8b6329f06
parentf1071cc1b1a272d0e6b80f0121f3ca4261850ae4 (diff)
downloadgst-libav-451a6c2ecf959639bca8a83371e3b0209789c015.tar.gz
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
-rw-r--r--ext/libav/gstavvidenc.c5
1 files 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 */