_remove_pending_pad (webrtc, pad);
gst_element_remove_pad (GST_ELEMENT (webrtc), GST_PAD (pad));
+#ifdef __TIZEN__
+ webrtc->priv->max_sink_pad_serial--;
+#endif
}
typedef struct
return trans;
}
+#ifdef __TIZEN__
+static void
+_remove_webrtc_transceiver (GstWebRTCBin * webrtc,
+ WebRTCTransceiver * trans)
+{
+ g_ptr_array_remove (webrtc->priv->transceivers, trans);
+ gst_object_unref (trans);
+}
+#endif
+
static TransportStream *
_create_transport_channel (GstWebRTCBin * webrtc, guint session_id)
{
* a possibly dead transceiver */
PC_LOCK (webrtc);
if (webrtc_pad->trans)
+#ifdef __TIZEN__
+ _remove_webrtc_transceiver (webrtc, webrtc_pad->trans);
+#else
gst_object_unref (webrtc_pad->trans);
+#endif
webrtc_pad->trans = NULL;
PC_UNLOCK (webrtc);