From b234d0b308f9bafb505b2ee41500c8fa67a72d67 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 11 Mar 2010 10:13:46 -0300 Subject: [PATCH] ffdec: Make metadata writable before setting caps In case we haven't created the output buffer, we should make metadata writable before setting caps on it. Fixes check unit tests. --- ext/ffmpeg/gstffmpegdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index 9023d09e01..73a4007508 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -2255,6 +2255,7 @@ gst_ffmpegdec_frame (GstFFMpegDec * ffmpegdec, ffmpegdec->discont = FALSE; } /* set caps */ + outbuf = gst_buffer_make_metadata_writable (outbuf); gst_buffer_set_caps (outbuf, GST_PAD_CAPS (ffmpegdec->srcpad)); if (ffmpegdec->segment.rate > 0.0) {