}
if (caps) {
+#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATION
if (trans)
+#endif
gst_caps_replace (&trans->last_configured_caps, caps);
ret = caps;
continue;
}
+#ifdef TIZEN_FEATURE_FIX_SEG_FAULT
+ if (!pad->trans) {
+ GST_LOG_OBJECT (pad, "doesn't have a transceiver");
+ tmp = tmp->next;
+ continue;
+ }
+
+#endif
if (pad->trans->mline >= gst_sdp_message_medias_len (sd->sdp->sdp)) {
GST_DEBUG_OBJECT (pad, "not mentioned in this description. Skipping");
tmp = tmp->next;
continue;
}
+#ifndef TIZEN_FEATURE_FIX_SEG_FAULT
if (!pad->trans) {
GST_LOG_OBJECT (pad, "doesn't have a transceiver");
tmp = tmp->next;
continue;
}
+#endif
new_dir = pad->trans->direction;
if (new_dir != GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDONLY &&
new_dir != GST_WEBRTC_RTP_TRANSCEIVER_DIRECTION_SENDRECV) {
return ret;
error:
-#ifndef TIZEN_FEATURE_WEBRTC_MODIFICATON
if (ret)
gst_object_unref (ret);
-#else
- if (ret) {
- gst_object_unref (ret);
- ret = NULL;
- }
+#ifdef TIZEN_FEATURE_WEBRTC_MODIFICATION
+ ret = NULL;
#endif
goto out;
}
# TIZEN_FEATURE_XXX can be generally used for all of modules in this subproject
cdata.set('TIZEN_FEATURE_FIX_MEMORY_LEAK', true)
+cdata.set('TIZEN_FEATURE_FIX_SEG_FAULT', true)
# TIZEN_FEATURE_[MODULE]_XXX should be used for a particular module
cdata.set('TIZEN_FEATURE_ADAPTIVE_MODIFICATION', true)