mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
sdp: Store a copy of the bandwidth string
Otherwise we will free a string later that does not belong to us. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=698888
This commit is contained in:
parent
c72aefb620
commit
f7e879aa18
1 changed files with 1 additions and 1 deletions
|
@ -1180,7 +1180,7 @@ gst_sdp_message_add_bandwidth (GstSDPMessage * msg, const gchar * bwtype,
|
|||
{
|
||||
GstSDPBandwidth bw;
|
||||
|
||||
bw.bwtype = (gchar *) bwtype;
|
||||
bw.bwtype = g_strdup (bwtype);
|
||||
bw.bandwidth = bandwidth;
|
||||
|
||||
return gst_sdp_message_insert_bandwidth (msg, -1, &bw);
|
||||
|
|
Loading…
Reference in a new issue