From 7eb8a9aaf6c0bf92a35e2c3f35ba7398eb8f6988 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 19 Oct 2011 14:13:39 +0100 Subject: [PATCH] playsink: send flush start/stop event when we switch elements https://bugzilla.gnome.org/show_bug.cgi?id=661262 --- gst/playback/gstplaysinkconvertbin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/playback/gstplaysinkconvertbin.c b/gst/playback/gstplaysinkconvertbin.c index 545b9e5..75e0668 100644 --- a/gst/playback/gstplaysinkconvertbin.c +++ b/gst/playback/gstplaysinkconvertbin.c @@ -81,6 +81,9 @@ distribute_running_time (GstElement * element, const GstSegment * segment) 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) { event = gst_event_new_new_segment_full (FALSE, segment->rate, segment->applied_rate, segment->format, 0, segment->accum, 0); -- 2.7.4