From d5f72418c8c7b8122d4dadf274bfbc75c9378c2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 7 Oct 2017 15:55:24 +0100 Subject: [PATCH] rtpbin, rtspsrc: fix compiler warnings about 64-bit integer signednes "warning: this decimal constant is unsigned only in ISO C90" with gcc 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.3) --- gst/rtpmanager/gstrtpbin.c | 4 ++-- gst/rtsp/gstrtspsrc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index 1cbe039..9b2c039 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -313,8 +313,8 @@ enum #define DEFAULT_MAX_MISORDER_TIME 2000 #define DEFAULT_RFC7273_SYNC FALSE #define DEFAULT_MAX_STREAMS G_MAXUINT -#define DEFAULT_MAX_TS_OFFSET_ADJUSTMENT 0 -#define DEFAULT_MAX_TS_OFFSET 3000000000 +#define DEFAULT_MAX_TS_OFFSET_ADJUSTMENT G_GUINT64_CONSTANT(0) +#define DEFAULT_MAX_TS_OFFSET G_GINT64_CONSTANT(3000000000) enum { diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 12587c8..6cd7902 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -231,8 +231,8 @@ gst_rtsp_src_ntp_time_source_get_type (void) #define DEFAULT_USER_AGENT "GStreamer/" PACKAGE_VERSION #define DEFAULT_MAX_RTCP_RTP_TIME_DIFF 1000 #define DEFAULT_RFC7273_SYNC FALSE -#define DEFAULT_MAX_TS_OFFSET_ADJUSTMENT 0 -#define DEFAULT_MAX_TS_OFFSET 3000000000 +#define DEFAULT_MAX_TS_OFFSET_ADJUSTMENT G_GUINT64_CONSTANT(0) +#define DEFAULT_MAX_TS_OFFSET G_GINT64_CONSTANT(3000000000) #define DEFAULT_VERSION GST_RTSP_VERSION_1_0 enum -- 2.7.4