From 763a7e5265f95002eb85bdf57b2899499cd2f04a Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 1 Dec 2015 00:03:21 -0300 Subject: [PATCH] wavparse: flush upstream when seeking in pull mode Makes sure upstream will unblock and return the thread so that seeking can continue https://bugzilla.gnome.org/show_bug.cgi?id=758861 --- gst/wavparse/gstwavparse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index ab0bedd5c1..f55b760db6 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -465,6 +465,7 @@ gst_wavparse_perform_seek (GstWavParse * wav, GstEvent * event) * blocking in preroll). */ if (flush) { GST_DEBUG_OBJECT (wav, "sending flush start"); + gst_pad_push_event (wav->sinkpad, gst_event_new_flush_start ()); gst_pad_push_event (wav->srcpad, gst_event_new_flush_start ()); } else { gst_pad_pause_task (wav->sinkpad); @@ -546,6 +547,7 @@ gst_wavparse_perform_seek (GstWavParse * wav, GstEvent * event) if (flush) { /* if we sent a FLUSH_START, we now send a FLUSH_STOP */ GST_DEBUG_OBJECT (wav, "sending flush stop"); + gst_pad_push_event (wav->sinkpad, gst_event_new_flush_stop (TRUE)); gst_pad_push_event (wav->srcpad, gst_event_new_flush_stop (TRUE)); }