flacparse: Fix buffer refcount issue
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 26 Mar 2010 16:49:01 +0000 (16:49 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 8 Apr 2011 17:07:06 +0000 (18:07 +0100)
commit7184fe911df77af0ec41eaee1b9dd6cb21e143ad
treeadf96f79a71b0920a98596580413d5c3ef6f8570
parentbb7f3ffe41fbc931e2579a278aef02c3ebbb6a73
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