summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-12-01 00:03:21 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-12-01 00:04:09 -0300
commit763a7e5265f95002eb85bdf57b2899499cd2f04a (patch)
treee537b42f2063580f4bfe211ba977cb34fd1d2077
parent453a618a9dc0ee6b35532f8b6c1d526300e17c54 (diff)
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
-rw-r--r--gst/wavparse/gstwavparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c
index ab0bedd5c..f55b760db 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));
}