reserved_pts = gather_reserved_pts (webrtc);
if (last_offer && _parse_bundle (last_offer, &last_bundle, NULL)
- && last_bundle && last_bundle && last_bundle[0]
+ && last_bundle && last_bundle[0]
&& _get_bundle_index (last_offer, last_bundle, &bundle_media_index)) {
bundle_ufrag =
g_strdup (_media_get_ice_ufrag (last_offer, bundle_media_index));
g_object_set (stream->rtxsend, "payload-type-map", pt_map, NULL);
gst_structure_free (pt_map);
+ g_free (rtx_pt);
}
}
{
TransportStream *stream;
gboolean have_rtx = FALSE;
- GstStructure *pt_map = NULL;
GstElement *ret = NULL;
stream = _find_transport_for_session (webrtc, session_id);
if (stream)
have_rtx = transport_stream_get_pt (stream, "RTX", -1) != 0;
- GST_LOG_OBJECT (webrtc, "requesting aux sender for stream %" GST_PTR_FORMAT
- " with pt map %" GST_PTR_FORMAT, stream, pt_map);
+ GST_LOG_OBJECT (webrtc, "requesting aux sender for stream %" GST_PTR_FORMAT,
+ stream);
if (have_rtx) {
GstElement *rtx;
}
out:
- if (pt_map)
- gst_structure_free (pt_map);
-
return ret;
}
ppid = DATA_CHANNEL_PPID_WEBRTC_STRING_EMPTY;
} else {
gsize size = strlen (str);
- gchar *str_copy = g_strdup (str);
+ gchar *str_copy;
if (!_is_within_max_message_size (channel, size)) {
GError *error = NULL;
return;
}
+ str_copy = g_strdup (str);
buffer =
gst_buffer_new_wrapped_full (GST_MEMORY_FLAG_READONLY, str_copy,
size, 0, size, str_copy, g_free);
GST_TRACE ("replace setup:%s with setup:%s", attr->value, setup_str);
gst_sdp_attribute_set (&new_attr, "setup", setup_str);
gst_sdp_media_replace_attribute (media, i, &new_attr);
+ g_free (setup_str);
return;
}
}