mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
rtpmux: Unlock the right mutex
The mutex locked is for the 'mux' object, but we unlock the pad, which means that if the rtpmux gets a flush, then the object lock will stay locked forever, causing it to freeze the next time it tries to take it. Fixes bug #627991
This commit is contained in:
parent
dab76bc68e
commit
5cc57a82f0
1 changed files with 1 additions and 1 deletions
|
@ -699,7 +699,7 @@ gst_rtp_mux_sink_event (GstPad * pad, GstEvent * event)
|
||||||
padpriv = gst_pad_get_element_private (pad);
|
padpriv = gst_pad_get_element_private (pad);
|
||||||
if (padpriv)
|
if (padpriv)
|
||||||
gst_segment_init (&padpriv->segment, GST_FORMAT_UNDEFINED);
|
gst_segment_init (&padpriv->segment, GST_FORMAT_UNDEFINED);
|
||||||
GST_OBJECT_UNLOCK (pad);
|
GST_OBJECT_UNLOCK (mux);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case GST_EVENT_NEWSEGMENT:
|
case GST_EVENT_NEWSEGMENT:
|
||||||
|
|
Loading…
Reference in a new issue