GNOME Bugzilla – Bug 639950
flacparse: avoid unref'ing NULL buffer
Last modified: 2011-01-19 18:02:14 UTC
Created attachment 178726 [details] [review] flacparse: mind gst_buffer_unref not liking NULL Attached patch removes entries from a collected list altogether rather than leaving a NULL buffer entry lying around that will trip gst_buffer_unref later on.
Right, I guess that happens in the return FALSE case. However, it also doesn't seem entirely right to me to keep around a partial header set/list in that case. The header buffers all belong together, so should either all be freed or all be kept IMHO.
Created attachment 178756 [details] [review] flacparse: mind gst_buffer_unref not liking NULL Alternative approach as suggested.
commit 289cd65abd5429ed2230b69cc1f009ce692a5411 Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> Date: Wed Jan 19 18:26:30 2011 +0100 flacparse: mind gst_buffer_unref not liking NULL Fixes #639950.