mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
basesrc: Do not lock a mutex that does not exist
The GST_LIVE_LOCK is on GstBaseSrc, not on its source pad.
This commit is contained in:
parent
25c2e54518
commit
592fbfb043
1 changed files with 2 additions and 2 deletions
|
@ -1706,13 +1706,13 @@ gst_base_src_send_event (GstElement * element, GstEvent * event)
|
||||||
event = NULL;
|
event = NULL;
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_FLUSH_STOP:
|
case GST_EVENT_FLUSH_STOP:
|
||||||
GST_LIVE_LOCK (src->srcpad);
|
GST_LIVE_LOCK (src);
|
||||||
src->priv->segment_pending = TRUE;
|
src->priv->segment_pending = TRUE;
|
||||||
/* sending random flushes downstream can break stuff,
|
/* sending random flushes downstream can break stuff,
|
||||||
* especially sync since all segment info will get flushed */
|
* especially sync since all segment info will get flushed */
|
||||||
GST_DEBUG_OBJECT (src, "pushing flush-stop event downstream");
|
GST_DEBUG_OBJECT (src, "pushing flush-stop event downstream");
|
||||||
result = gst_pad_push_event (src->srcpad, event);
|
result = gst_pad_push_event (src->srcpad, event);
|
||||||
GST_LIVE_UNLOCK (src->srcpad);
|
GST_LIVE_UNLOCK (src);
|
||||||
event = NULL;
|
event = NULL;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue