mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
vorbisparse: make sure header buffer metadata is writable before modifying it
Fixes unit test failures with core git.
This commit is contained in:
parent
9b5ef584e2
commit
3dd39392c2
1 changed files with 3 additions and 0 deletions
|
@ -238,10 +238,13 @@ vorbis_parse_push_headers (GstVorbisParse * parse)
|
|||
vorbis_parse_drain_event_queue (parse);
|
||||
|
||||
/* push out buffers, ignoring return value... */
|
||||
outbuf1 = gst_buffer_make_metadata_writable (outbuf1);
|
||||
gst_buffer_set_caps (outbuf1, GST_PAD_CAPS (parse->srcpad));
|
||||
gst_pad_push (parse->srcpad, outbuf1);
|
||||
outbuf2 = gst_buffer_make_metadata_writable (outbuf2);
|
||||
gst_buffer_set_caps (outbuf2, GST_PAD_CAPS (parse->srcpad));
|
||||
gst_pad_push (parse->srcpad, outbuf2);
|
||||
outbuf3 = gst_buffer_make_metadata_writable (outbuf3);
|
||||
gst_buffer_set_caps (outbuf3, GST_PAD_CAPS (parse->srcpad));
|
||||
gst_pad_push (parse->srcpad, outbuf3);
|
||||
|
||||
|
|
Loading…
Reference in a new issue