qtdemux: Fix buffer leak with corrupted files

Fixes bug #650912.
This commit is contained in:
Jonas Larsson 2011-05-24 09:48:56 +02:00 committed by Sebastian Dröge
parent 16d71c7d96
commit 090e3a6f41

View file

@ -2723,6 +2723,7 @@ gst_qtdemux_loop_state_header (GstQTDemux * qtdemux)
("We got less than expected (received %u, wanted %u, offset %"
G_GUINT64_FORMAT ")",
GST_BUFFER_SIZE (moov), (guint) length, cur_offset));
gst_buffer_unref (moov);
ret = GST_FLOW_ERROR;
goto beach;
}