diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index c52ff79500..71a1fa20e8 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -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; }