From 41f8e03b85275b6e9dc519021cfa34d6afbed66a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 7 Jun 2015 10:52:33 +0200 Subject: [PATCH] netclientclock: The NTP poll interval is a signed int8, not unsigned --- libs/gst/net/gstntppacket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gst/net/gstntppacket.c b/libs/gst/net/gstntppacket.c index cd3c277..699f72b 100644 --- a/libs/gst/net/gstntppacket.c +++ b/libs/gst/net/gstntppacket.c @@ -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, -- 2.7.4