sdp: Do not assign -1 to an unsigned variable, use 0 instead
authorJose Antonio Santos Cadenas <santoscadenas@gmail.com>
Tue, 2 Apr 2013 15:09:48 +0000 (17:09 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 3 Apr 2013 07:53:22 +0000 (09:53 +0200)
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=697162

gst-libs/gst/sdp/gstsdpmessage.c

index e2fe177..c43394d 100644 (file)
@@ -1959,7 +1959,7 @@ gst_sdp_parse_line (SDPContext * c, gchar type, gchar * buffer)
         nmedia.num_ports = atoi (slash + 1);
       } else {
         nmedia.port = atoi (str);
-        nmedia.num_ports = -1;
+        nmedia.num_ports = 0;
       }
       READ_STRING (nmedia.proto);
       do {