playsink: send flush start/stop event when we switch elements

https://bugzilla.gnome.org/show_bug.cgi?id=661262
This commit is contained in:
Vincent Penquerc'h 2011-10-19 14:13:39 +01:00 committed by Sebastian Dröge
parent 0cac680fac
commit 7eb8a9aaf6

View file

@ -81,6 +81,9 @@ distribute_running_time (GstElement * element, const GstSegment * segment)
pad = gst_element_get_static_pad (element, "sink"); pad = gst_element_get_static_pad (element, "sink");
gst_pad_send_event (pad, gst_event_new_flush_start ());
gst_pad_send_event (pad, gst_event_new_flush_stop ());
if (segment->accum) { if (segment->accum) {
event = gst_event_new_new_segment_full (FALSE, segment->rate, event = gst_event_new_new_segment_full (FALSE, segment->rate,
segment->applied_rate, segment->format, 0, segment->accum, 0); segment->applied_rate, segment->format, 0, segment->accum, 0);