tagdemux: Unref the actual buffer instead of the memory address of the buffer

This commit is contained in:
Sebastian Dröge 2009-02-22 19:12:00 +01:00
parent 9d91e56674
commit d659e8353d

View file

@ -1285,7 +1285,7 @@ read_beyond_end:
{
GST_DEBUG_OBJECT (demux, "attempted read beyond end of file");
if (*buffer != NULL) {
gst_buffer_unref (buffer);
gst_buffer_unref (*buffer);
*buffer = NULL;
}
return GST_FLOW_UNEXPECTED;