From 7184fe911df77af0ec41eaee1b9dd6cb21e143ad Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Fri, 26 Mar 2010 16:49:01 +0000 Subject: [PATCH] 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 --- gst/audioparsers/gstflacparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/audioparsers/gstflacparse.c b/gst/audioparsers/gstflacparse.c index 0c8aa90..2ea30ec 100644 --- a/gst/audioparsers/gstflacparse.c +++ b/gst/audioparsers/gstflacparse.c @@ -1015,6 +1015,7 @@ push_headers: GstFlowReturn ret; l->data = NULL; + buf = gst_buffer_make_metadata_writable (buf); gst_buffer_set_caps (buf, GST_PAD_CAPS (GST_BASE_PARSE_SRC_PAD (GST_BASE_PARSE (flacparse)))); -- 2.7.4