netclientclock: The NTP poll interval is a signed int8, not unsigned
authorSebastian Dröge <sebastian@centricular.com>
Sun, 7 Jun 2015 08:52:33 +0000 (10:52 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 7 Jun 2015 08:52:33 +0000 (10:52 +0200)
libs/gst/net/gstntppacket.c

index cd3c277..699f72b 100644 (file)
@@ -101,7 +101,7 @@ gst_ntp_packet_new (const guint8 * buffer, GError ** error)
   if (buffer) {
     guint8 version = (buffer[0] >> 3) & 0x7;
     guint8 stratum = buffer[1];
-    guint8 poll_interval = buffer[2];
+    gint8 poll_interval = buffer[2];
 
     if (version != 4) {
       g_set_error (error, GST_NTP_ERROR, GST_NTP_ERROR_WRONG_VERSION,