mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
flacparse: Fix buffer refcount issue
When called from the GST_FLAC_PARSE_STATE_HEADERS case, gst_flac_parse_hand_headers() does a gst_buffer_set_caps() on a buffer with refcount > 1. This change handles this case by making the buffer metadata_Writable. https://bugzilla.gnome.org/show_bug.cgi?id=614037
This commit is contained in:
parent
eb34b2015b
commit
cc6c4ef00b
1 changed files with 1 additions and 0 deletions
|
@ -1015,6 +1015,7 @@ push_headers:
|
||||||
GstFlowReturn ret;
|
GstFlowReturn ret;
|
||||||
|
|
||||||
l->data = NULL;
|
l->data = NULL;
|
||||||
|
buf = gst_buffer_make_metadata_writable (buf);
|
||||||
gst_buffer_set_caps (buf,
|
gst_buffer_set_caps (buf,
|
||||||
GST_PAD_CAPS (GST_BASE_PARSE_SRC_PAD (GST_BASE_PARSE (flacparse))));
|
GST_PAD_CAPS (GST_BASE_PARSE_SRC_PAD (GST_BASE_PARSE (flacparse))));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue