diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-12-01 00:03:21 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-12-01 11:24:31 -0300 |
commit | 9bbcec9191d655118e3b0b6d36aebf43b09d2e0d (patch) | |
tree | add5fec2e6560c876a3fa89977f138139e65107a | |
parent | 003ecb0bd41850c40e72cdbe20b7a07735b32e92 (diff) | |
download | gstreamer-plugins-good-9bbcec9191d655118e3b0b6d36aebf43b09d2e0d.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index b0e34231a..205af8894 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)); } |