mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 13:18:52 +00:00
rndbuffersize: must send flush-stop after acquiring the stream lock
Otherwise the streaming thread might just keep on going and we might never get the stream lock.
This commit is contained in:
parent
7e03f5f004
commit
338286cedf
1 changed files with 3 additions and 2 deletions
|
@ -309,14 +309,15 @@ gst_rnd_buffer_size_src_event (GstPad * pad, GstObject * parent,
|
||||||
if ((flags & GST_SEEK_FLAG_FLUSH)) {
|
if ((flags & GST_SEEK_FLAG_FLUSH)) {
|
||||||
gst_pad_push_event (self->srcpad, gst_event_new_flush_start ());
|
gst_pad_push_event (self->srcpad, gst_event_new_flush_start ());
|
||||||
gst_pad_push_event (self->sinkpad, gst_event_new_flush_start ());
|
gst_pad_push_event (self->sinkpad, gst_event_new_flush_start ());
|
||||||
gst_pad_push_event (self->srcpad, gst_event_new_flush_stop (TRUE));
|
|
||||||
gst_pad_push_event (self->sinkpad, gst_event_new_flush_stop (TRUE));
|
|
||||||
} else {
|
} else {
|
||||||
gst_pad_pause_task (self->sinkpad);
|
gst_pad_pause_task (self->sinkpad);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_PAD_STREAM_LOCK (self->sinkpad);
|
GST_PAD_STREAM_LOCK (self->sinkpad);
|
||||||
|
|
||||||
|
gst_pad_push_event (self->srcpad, gst_event_new_flush_stop (TRUE));
|
||||||
|
gst_pad_push_event (self->sinkpad, gst_event_new_flush_stop (TRUE));
|
||||||
|
|
||||||
GST_INFO_OBJECT (pad, "seeking to offset %" G_GINT64_FORMAT, start);
|
GST_INFO_OBJECT (pad, "seeking to offset %" G_GINT64_FORMAT, start);
|
||||||
|
|
||||||
self->offset = start;
|
self->offset = start;
|
||||||
|
|
Loading…
Reference in a new issue