From e937db0f9274c445531db7acfc9625b7d50e8bf0 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Thu, 30 Jun 2011 09:20:11 +0200 Subject: [PATCH] ffmpegenc: properly handle caps event ... which comes down to unconditionally eating incoming caps event, since that one could never correctly describe the setup for downstream elements. --- ext/ffmpeg/gstffmpegenc.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ext/ffmpeg/gstffmpegenc.c b/ext/ffmpeg/gstffmpegenc.c index 58f6eef..e5707b8 100644 --- a/ext/ffmpeg/gstffmpegenc.c +++ b/ext/ffmpeg/gstffmpegenc.c @@ -1158,11 +1158,12 @@ gst_ffmpegenc_event_sink (GstPad * pad, GstEvent * event) } case GST_EVENT_CAPS:{ GstCaps *caps; + gboolean ret; + gst_event_parse_caps (event, &caps); - if (!gst_ffmpegenc_setcaps (ffmpegenc, caps)) { - gst_event_unref (event); - return FALSE; - } + ret = gst_ffmpegenc_setcaps (ffmpegenc, caps); + gst_event_unref (event); + return ret; break; } default: -- 2.7.4