From a30b434b53e12932e2de4e8c237be3fdba8d10b3 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 21 Apr 2011 12:53:23 +0200 Subject: [PATCH] ffmpegdec: Set caps on outgoing audio buffers --- ext/ffmpeg/gstffmpegdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index d364e8da81..7f9c10695e 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -2133,6 +2133,7 @@ gst_ffmpegdec_audio_frame (GstFFMpegDec * ffmpegdec, GST_BUFFER_TIMESTAMP (*outbuf) = out_timestamp; GST_BUFFER_DURATION (*outbuf) = out_duration; GST_BUFFER_OFFSET (*outbuf) = out_offset; + gst_buffer_set_caps (*outbuf, GST_PAD_CAPS (ffmpegdec->srcpad)); /* the next timestamp we'll use when interpolating */ ffmpegdec->next_out = out_timestamp + out_duration;