avidemux: more DISCONT handling
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 19 Jan 2010 17:35:49 +0000 (18:35 +0100)
committerRobert Swain <robert.swain@collabora.co.uk>
Fri, 12 Feb 2010 14:56:18 +0000 (15:56 +0100)
Add some debug in the DISCONT handling code.
When we receive a DISCONT in push mode, mark all streams as DISCONT.

gst/avi/gstavidemux.c

index b0f115b..9758861 100644 (file)
@@ -5082,9 +5082,6 @@ gst_avi_demux_chain (GstPad * pad, GstBuffer * buf)
       avi->stream[i].discont = TRUE;
   }
 
-  if (GST_BUFFER_IS_DISCONT (buf))
-    gst_adapter_clear (avi->adapter);
-
   GST_DEBUG ("Store %d bytes in adapter", GST_BUFFER_SIZE (buf));
   gst_adapter_push (avi->adapter, buf);