Commit a7fb7b53 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

rtpjitterbuffer: don't forget to unlock mutex in error code path in two cases

parent 5dcf1a4f
...@@ -1730,6 +1730,7 @@ no_caps: ...@@ -1730,6 +1730,7 @@ no_caps:
} }
out_flushing: out_flushing:
{ {
JBUF_UNLOCK (jitterbuffer->priv);
GST_DEBUG_OBJECT (jitterbuffer, "we are flushing"); GST_DEBUG_OBJECT (jitterbuffer, "we are flushing");
return GST_FLOW_FLUSHING; return GST_FLOW_FLUSHING;
} }
...@@ -3051,6 +3052,7 @@ pop_and_push_next (GstRtpJitterBuffer * jitterbuffer, guint seqnum) ...@@ -3051,6 +3052,7 @@ pop_and_push_next (GstRtpJitterBuffer * jitterbuffer, guint seqnum)
/* ERRORS */ /* ERRORS */
out_flushing: out_flushing:
{ {
JBUF_UNLOCK (priv);
return priv->srcresult; return priv->srcresult;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment