PROP_ICE_AGENT,
PROP_LATENCY,
PROP_SCTP_TRANSPORT,
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
PROP_NETSIM,
PROP_DROP_PROBABILITY_SENDER,
PROP_DROP_PROBABILITY_RECEIVER
_remove_pending_pad (webrtc, pad);
gst_element_remove_pad (GST_ELEMENT (webrtc), GST_PAD (pad));
-#ifdef __TIZEN__
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
GST_OBJECT_LOCK (webrtc);
webrtc->priv->max_sink_pad_serial--;
GST_OBJECT_UNLOCK (webrtc);
#undef STATE
}
-#ifdef __TIZEN__
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
static void
_update_and_notify_ice_gathering_state (GstWebRTCBin * webrtc, GstWebRTCICEGatheringState state)
{
static GstStructure *
_update_ice_gathering_state_task (GstWebRTCBin * webrtc, gpointer data)
{
-#ifndef __TIZEN__
+#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATION
GstWebRTCICEGatheringState old_state = webrtc->ice_gathering_state;
#endif
GstWebRTCICEGatheringState new_state;
ICE_LOCK (webrtc);
if (webrtc->priv->pending_local_ice_candidates->len != 0) {
/* ICE candidates queued for emissiong -> we're gathering, not complete */
-#ifdef __TIZEN__
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
webrtc->pending_ice_gathering_state = GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE;
GST_INFO_OBJECT (webrtc, "set pending_ice_gathering_state to (%u)",
webrtc->pending_ice_gathering_state);
ICE_UNLOCK (webrtc);
}
-#ifdef __TIZEN__
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
_update_and_notify_ice_gathering_state (webrtc, new_state);
#else
if (new_state != webrtc->ice_gathering_state) {
return trans;
}
-#ifdef __TIZEN__
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
static void
_remove_webrtc_transceiver (GstWebRTCBin * webrtc,
GstWebRTCRTPTransceiver * trans)
reserved_pts = gather_reserved_pts (webrtc);
if (last_offer && _parse_bundle (last_offer, &last_bundle, NULL)
-#ifndef __TIZEN__
+#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATION
&& last_bundle && last_bundle && last_bundle[0]
#else
&& last_bundle && last_bundle[0]
return ret;
}
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
static void
_insert_netsim_element_between (GstWebRTCBin * webrtc, GstElement * srcbin,
const gchar * srcpadname, GstElement * sinkbin, const gchar * sinkpadname,
gst_ghost_pad_set_target (GST_GHOST_PAD (pad), sinkpad);
pad_name = g_strdup_printf ("send_rtp_src_%u", pad->trans->mline);
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
if (webrtc->priv->netsim) {
_insert_netsim_element_between (webrtc, GST_ELEMENT (webrtc->rtpbin), pad_name,
GST_ELEMENT (trans->stream->send_bin), "rtp_sink", pad->trans->mline);
if (!gst_element_link_pads (GST_ELEMENT (webrtc->rtpbin), pad_name,
GST_ELEMENT (trans->stream->send_bin), "rtp_sink"))
g_warn_if_reached ();
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
}
#endif
g_free (pad_name);
session_id, stream);
pad_name = g_strdup_printf ("recv_rtp_sink_%u", session_id);
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
if (webrtc->priv->netsim) {
_insert_netsim_element_between (webrtc, GST_ELEMENT (stream->receive_bin),
"rtp_src", GST_ELEMENT (webrtc->rtpbin), pad_name, session_id);
if (!gst_element_link_pads (GST_ELEMENT (stream->receive_bin),
"rtp_src", GST_ELEMENT (webrtc->rtpbin), pad_name))
g_warn_if_reached ();
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
}
#endif
g_free (pad_name);
g_object_set (stream->rtxsend, "payload-type-map", pt_map, NULL);
gst_structure_free (pt_map);
-#ifdef __TIZEN__
+#ifdef TIZEN_FEATURE_FIX_MEMORY_LEAK
g_free (rtx_pt);
#endif
}
gst_object_unref (rtp_sink);
pad_name = g_strdup_printf ("send_rtp_src_%d", session_id);
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
if (webrtc->priv->netsim) {
_insert_netsim_element_between (webrtc, GST_ELEMENT (webrtc->rtpbin), pad_name,
GST_ELEMENT (stream->send_bin), "rtp_sink", session_id);
if (!gst_element_link_pads (GST_ELEMENT (webrtc->rtpbin), pad_name,
GST_ELEMENT (stream->send_bin), "rtp_sink"))
g_warn_if_reached ();
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
}
#endif
g_free (pad_name);
}
g_array_free (items, TRUE);
-#ifdef __TIZEN__
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
if (webrtc->pending_ice_gathering_state == GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE) {
_update_and_notify_ice_gathering_state (webrtc, GST_WEBRTC_ICE_GATHERING_STATE_COMPLETE);
webrtc->pending_ice_gathering_state = GST_WEBRTC_ICE_GATHERING_STATE_NEW;
g_return_val_if_fail (GST_IS_WEBRTC_BIN (webrtc), NULL);
g_return_val_if_fail (label != NULL, NULL);
g_return_val_if_fail (strlen (label) <= 65535, NULL);
-#ifndef __TIZEN__
+#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATION
g_return_val_if_fail (webrtc->priv->is_closed != TRUE, NULL);
#endif
{
TransportStream *stream;
gboolean have_rtx = FALSE;
-#ifndef __TIZEN__
+#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATION
GstStructure *pt_map = NULL;
#endif
GstElement *ret = NULL;
if (stream)
have_rtx = transport_stream_get_pt (stream, "RTX") != 0;
-#ifndef __TIZEN__
+#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATION
GST_LOG_OBJECT (webrtc, "requesting aux sender for stream %" GST_PTR_FORMAT
" with pt map %" GST_PTR_FORMAT, stream, pt_map);
#else
}
out:
-#ifndef __TIZEN__
+#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATION
if (pt_map)
gst_structure_free (pt_map);
break;
case GST_STATE_CHANGE_READY_TO_NULL:
_stop_thread (webrtc);
-#ifdef __TIZEN__
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
webrtc->priv->need_negotiation = FALSE;
#endif
break;
* a possibly dead transceiver */
PC_LOCK (webrtc);
if (webrtc_pad->trans)
-#ifdef __TIZEN__
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
_remove_webrtc_transceiver (webrtc, webrtc_pad->trans);
#else
gst_object_unref (webrtc_pad->trans);
}
}
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
static void
_update_drop_probability (GstWebRTCBin * webrtc, gfloat probability, gboolean sender)
{
webrtc->priv->jb_latency = g_value_get_uint (value);
_update_rtpstorage_latency (webrtc);
break;
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
case PROP_NETSIM:
webrtc->priv->netsim = g_value_get_boolean (value);
_update_drop_probability (webrtc, webrtc->priv->netsim ?
case PROP_SCTP_TRANSPORT:
g_value_set_object (value, webrtc->priv->sctp_transport);
break;
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
case PROP_NETSIM:
g_value_set_boolean (value, webrtc->priv->netsim);
break;
GST_TYPE_WEBRTC_SCTP_TRANSPORT,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
-#ifdef TIZEN_FEATURE_IMPORT_NETSIM
+#ifdef TIZEN_FEATURE_WEBRTC_IMPORT_NETSIM
g_object_class_install_property (gobject_class,
PROP_NETSIM,
g_param_spec_boolean ("netsim", "Use network simulator",