This got accidently removed and screws up seeking a lot

Original commit message from CVS:
This got accidently removed and screws up seeking a lot
This commit is contained in:
Wim Taymans 2002-12-26 19:01:41 +00:00
parent b3bec6e0bb
commit 483e647a76

View file

@ -2717,6 +2717,15 @@ gst_pad_event_default (GstPad *pad, GstEvent *event)
gst_element_yield (element);
break;
case GST_EVENT_DISCONTINUOUS:
{
guint64 time;
if (gst_event_discont_get_value (event, GST_FORMAT_TIME, &time)) {
if (gst_element_requires_clock (element) && element->clock) {
gst_clock_handle_discont (element->clock, time);
}
}
}
case GST_EVENT_FLUSH:
default:
return gst_pad_event_default_dispatch (pad, element, event);