mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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.
This commit is contained in:
parent
c300a0a9f2
commit
b234d0b308
1 changed files with 1 additions and 0 deletions
|
@ -2255,6 +2255,7 @@ gst_ffmpegdec_frame (GstFFMpegDec * ffmpegdec,
|
||||||
ffmpegdec->discont = FALSE;
|
ffmpegdec->discont = FALSE;
|
||||||
}
|
}
|
||||||
/* set caps */
|
/* set caps */
|
||||||
|
outbuf = gst_buffer_make_metadata_writable (outbuf);
|
||||||
gst_buffer_set_caps (outbuf, GST_PAD_CAPS (ffmpegdec->srcpad));
|
gst_buffer_set_caps (outbuf, GST_PAD_CAPS (ffmpegdec->srcpad));
|
||||||
|
|
||||||
if (ffmpegdec->segment.rate > 0.0) {
|
if (ffmpegdec->segment.rate > 0.0) {
|
||||||
|
|
Loading…
Reference in a new issue