mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
media: don't unlock when conversion fails
Don't unlock the state lock when conversion fails because it was not locked.
This commit is contained in:
parent
0b94f50eab
commit
81c3843ad1
1 changed files with 1 additions and 3 deletions
|
@ -1135,9 +1135,8 @@ gst_rtsp_media_get_range_string (GstRTSPMedia * media, gboolean play,
|
||||||
g_mutex_unlock (&priv->lock);
|
g_mutex_unlock (&priv->lock);
|
||||||
g_rec_mutex_unlock (&priv->state_lock);
|
g_rec_mutex_unlock (&priv->state_lock);
|
||||||
|
|
||||||
if (!klass->convert_range (media, &range, unit)) {
|
if (!klass->convert_range (media, &range, unit))
|
||||||
goto conversion_failed;
|
goto conversion_failed;
|
||||||
}
|
|
||||||
|
|
||||||
result = gst_rtsp_range_to_string (&range);
|
result = gst_rtsp_range_to_string (&range);
|
||||||
|
|
||||||
|
@ -1153,7 +1152,6 @@ not_prepared:
|
||||||
conversion_failed:
|
conversion_failed:
|
||||||
{
|
{
|
||||||
GST_WARNING ("range conversion to unit %d failed", unit);
|
GST_WARNING ("range conversion to unit %d failed", unit);
|
||||||
g_rec_mutex_unlock (&priv->state_lock);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue