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:
Jose Antonio Santos Cadenas 2013-04-02 17:05:36 +02:00 committed by Wim Taymans
parent 27abdf51bf
commit 83468609d8

View file

@ -1341,7 +1341,7 @@ gst_sdp_media_as_text (const GstSDPMedia * media)
if (attr->key) { if (attr->key) {
g_string_append_printf (lines, "a=%s", 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, ":%s", attr->value);
g_string_append_printf (lines, "\r\n"); g_string_append_printf (lines, "\r\n");
} }