rtpsession: unlock before emitting signals

This commit is contained in:
Wim Taymans 2010-12-22 11:42:31 +01:00
parent 6db12cb003
commit 2b53cbe923

View file

@ -1215,9 +1215,13 @@ gst_rtp_session_get_caps_for_pt (GstRtpSession * rtpsession, guint payload)
g_value_init (&ret, GST_TYPE_CAPS);
g_value_set_boxed (&ret, NULL);
GST_RTP_SESSION_UNLOCK (rtpsession);
g_signal_emitv (args, gst_rtp_session_signals[SIGNAL_REQUEST_PT_MAP], 0,
&ret);
GST_RTP_SESSION_LOCK (rtpsession);
g_value_unset (&args[0]);
g_value_unset (&args[1]);
caps = (GstCaps *) g_value_dup_boxed (&ret);