From 0940dae79399767742dbc591ed2c43609209a15d Mon Sep 17 00:00:00 2001 From: Jose Antonio Santos Cadenas Date: Tue, 2 Apr 2013 17:09:48 +0200 Subject: [PATCH] sdp: Do not assign -1 to an unsigned variable, use 0 instead Fixes https://bugzilla.gnome.org/show_bug.cgi?id=697162 --- gst-libs/gst/sdp/gstsdpmessage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/sdp/gstsdpmessage.c b/gst-libs/gst/sdp/gstsdpmessage.c index e2fe177162..c43394dce4 100644 --- a/gst-libs/gst/sdp/gstsdpmessage.c +++ b/gst-libs/gst/sdp/gstsdpmessage.c @@ -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 {