mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
sdp: If attribute value is emply do not print colon character
See https://bugzilla.gnome.org/show_bug.cgi?id=697162
This commit is contained in:
parent
27abdf51bf
commit
83468609d8
1 changed files with 1 additions and 1 deletions
|
@ -1341,7 +1341,7 @@ gst_sdp_media_as_text (const GstSDPMedia * media)
|
|||
|
||||
if (attr->key) {
|
||||
g_string_append_printf (lines, "a=%s", attr->key);
|
||||
if (attr->value)
|
||||
if (attr->value && attr->value[0] != '\0')
|
||||
g_string_append_printf (lines, ":%s", attr->value);
|
||||
g_string_append_printf (lines, "\r\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue