summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Antonio Santos Cadenas <santoscadenas@gmail.com>2013-04-02 17:05:36 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2013-04-03 09:52:54 +0200
commit83468609d8c8896faf4f0b0706b7f0f4752b1a04 (patch)
treeaf565ef9171a8500d25eea175994c1cca64d6efe
parent27abdf51bf489a28f50745bbd2329d5a84b67339 (diff)
sdp: If attribute value is emply do not print colon character
See https://bugzilla.gnome.org/show_bug.cgi?id=697162
-rw-r--r--gst-libs/gst/sdp/gstsdpmessage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/sdp/gstsdpmessage.c b/gst-libs/gst/sdp/gstsdpmessage.c
index 3d2757e31..e2fe17716 100644
--- a/gst-libs/gst/sdp/gstsdpmessage.c
+++ b/gst-libs/gst/sdp/gstsdpmessage.c
@@ -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");
}