mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 05:31:15 +00:00
basesrc: Don't hold the object lock while pushing an event
Release the object lock before pushing a segment event. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4951>
This commit is contained in:
parent
1f18ceaf0f
commit
0461103965
1 changed files with 3 additions and 3 deletions
|
@ -4195,12 +4195,12 @@ gst_base_src_push_segment (GstBaseSrc * src, const GstSegment * segment)
|
||||||
src->priv->segment_pending = FALSE;
|
src->priv->segment_pending = FALSE;
|
||||||
src->priv->segment_seqnum = gst_util_seqnum_next ();
|
src->priv->segment_seqnum = gst_util_seqnum_next ();
|
||||||
gst_event_set_seqnum (seg_event, src->priv->segment_seqnum);
|
gst_event_set_seqnum (seg_event, src->priv->segment_seqnum);
|
||||||
gst_pad_push_event (src->srcpad, seg_event);
|
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (src, "Sending new segment %" GST_SEGMENT_FORMAT, segment);
|
|
||||||
|
|
||||||
GST_OBJECT_UNLOCK (src);
|
GST_OBJECT_UNLOCK (src);
|
||||||
|
|
||||||
|
GST_DEBUG_OBJECT (src, "Sending new segment %" GST_SEGMENT_FORMAT, segment);
|
||||||
|
gst_pad_push_event (src->srcpad, seg_event);
|
||||||
|
|
||||||
src->running = TRUE;
|
src->running = TRUE;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue