mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
queue2: set seeking flag with the queue lock
This commit is contained in:
parent
5755e24379
commit
b7a8051d95
1 changed files with 2 additions and 2 deletions
|
@ -1087,6 +1087,8 @@ perform_seek_to_offset (GstQueue2 * queue, guint64 offset)
|
|||
GstEvent *event;
|
||||
gboolean res;
|
||||
|
||||
/* until we receive the FLUSH_STOP from this seek, we skip data */
|
||||
queue->seeking = TRUE;
|
||||
GST_QUEUE2_MUTEX_UNLOCK (queue);
|
||||
|
||||
GST_DEBUG_OBJECT (queue, "Seeking to %" G_GUINT64_FORMAT, offset);
|
||||
|
@ -1096,8 +1098,6 @@ perform_seek_to_offset (GstQueue2 * queue, guint64 offset)
|
|||
GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_ACCURATE, GST_SEEK_TYPE_SET, offset,
|
||||
GST_SEEK_TYPE_NONE, -1);
|
||||
|
||||
/* until we receive the FLUSH_STOP from this seek, we skip data */
|
||||
queue->seeking = TRUE;
|
||||
res = gst_pad_push_event (queue->sinkpad, event);
|
||||
GST_QUEUE2_MUTEX_LOCK (queue);
|
||||
|
||||
|
|
Loading…
Reference in a new issue