fix spider to accomodate filesrc's new behavior (ie, sending a DISCONT before any data)

Original commit message from CVS:
fix spider to accomodate filesrc's new behavior (ie, sending a DISCONT before any data)
This commit is contained in:
Andy Wingo 2002-05-30 04:33:01 +00:00
parent 2caef6eec9
commit c6446629ef

View 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 */