ffmpegdec: Set caps on outgoing audio buffers
authorEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 21 Apr 2011 10:53:23 +0000 (12:53 +0200)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Thu, 21 Apr 2011 18:56:45 +0000 (20:56 +0200)
ext/ffmpeg/gstffmpegdec.c

index d364e8da818a469d65ff5c0aaaa1d36b818104a9..7f9c10695ebcf82d77970d09f16841fdf6159adc 100644 (file)
@@ -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;