mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
rtsp-media: Fix mutex beeing unlocked while they should be locked
https://bugzilla.gnome.org/show_bug.cgi?id=761226
This commit is contained in:
parent
ac1d35b147
commit
fefc011dfb
1 changed files with 3 additions and 3 deletions
|
@ -1298,7 +1298,7 @@ gst_rtsp_media_get_retransmission_time (GstRTSPMedia * media)
|
|||
|
||||
priv = media->priv;
|
||||
|
||||
g_mutex_unlock (&priv->lock);
|
||||
g_mutex_lock (&priv->lock);
|
||||
res = priv->rtx_time;
|
||||
g_mutex_unlock (&priv->lock);
|
||||
|
||||
|
@ -1348,7 +1348,7 @@ gst_rtsp_media_get_latency (GstRTSPMedia * media)
|
|||
|
||||
priv = media->priv;
|
||||
|
||||
g_mutex_unlock (&priv->lock);
|
||||
g_mutex_lock (&priv->lock);
|
||||
res = priv->latency;
|
||||
g_mutex_unlock (&priv->lock);
|
||||
|
||||
|
@ -1396,7 +1396,7 @@ gst_rtsp_media_is_time_provider (GstRTSPMedia * media)
|
|||
|
||||
priv = media->priv;
|
||||
|
||||
g_mutex_unlock (&priv->lock);
|
||||
g_mutex_lock (&priv->lock);
|
||||
res = priv->time_provider;
|
||||
g_mutex_unlock (&priv->lock);
|
||||
|
||||
|
|
Loading…
Reference in a new issue