} else if (GST_PAD_PROBE_INFO_TYPE (info) &
GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) {
GstEvent *event = GST_PAD_PROBE_INFO_EVENT (info);
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
+ GST_WEBRTC_DATA_CHANNEL_LOCK (channel);
+#endif
if (GST_EVENT_TYPE (event) == GST_EVENT_EOS
&& channel->parent.ready_state ==
GST_WEBRTC_DATA_CHANNEL_STATE_CLOSING) {
_channel_enqueue_task (channel, (ChannelTask) _close_sctp_stream, NULL,
NULL);
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
+ GST_WEBRTC_DATA_CHANNEL_UNLOCK (channel);
+#endif
return GST_PAD_PROBE_DROP;
}
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
+ GST_WEBRTC_DATA_CHANNEL_UNLOCK (channel);
+#endif
}
if (size > 0) {