fix spider to accomodate filesrc's new behavior (ie, sending a DISCONT before any...
authorAndy Wingo <wingo@pobox.com>
Thu, 30 May 2002 04:33:01 +0000 (04:33 +0000)
committerAndy Wingo <wingo@pobox.com>
Thu, 30 May 2002 04:33:01 +0000 (04:33 +0000)
Original commit message from CVS:
fix spider to accomodate filesrc's new behavior (ie, sending a DISCONT before any data)

gst/autoplug/gstspideridentity.c

index 1b89105..74d6220 100644 (file)
@@ -490,9 +490,10 @@ gst_spider_identity_sink_loop_type_finding (GstSpiderIdentity *ident)
   buf = gst_pad_pull (ident->sink);
   
   /* if it's an event... */
-  if (GST_IS_EVENT (buf)) {
+  while (GST_IS_EVENT (buf)) {
     /* handle DISCONT events, please */
     gst_pad_event_default (ident->sink, GST_EVENT (buf));
+    buf = gst_pad_pull (ident->sink);
   } 
 
   /* add it to the end of the cache */