mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
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
This commit is contained in:
parent
453a618a9d
commit
763a7e5265
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue