avidemux: prevent double unref; gst_avi_demux_parse_avih already unrefs

This commit is contained in:
Mark Nauwelaerts 2009-08-04 11:35:18 +02:00
parent 42bc085d95
commit effa7b4660

View file

@ -3438,8 +3438,6 @@ invalid_avih:
{
GST_ELEMENT_ERROR (avi, STREAM, DEMUX, (NULL),
("Invalid AVI header (cannot parse avih at start)"));
if (sub)
gst_buffer_unref (sub);
gst_buffer_unref (buf);
return GST_FLOW_ERROR;
}