From eb13a1d6076212d85e1093ed18840a4704771347 Mon Sep 17 00:00:00 2001 From: Minjae Kim Date: Thu, 24 Mar 2016 15:57:11 +0900 Subject: [PATCH] rtpmanager: Set to initial value for 'ntpns' in get_current_times() Initialize "ntpns" variable to -1 as the OE compiler for some reason doesn't realize that the variable is set in all code paths. https://bugzilla.gnome.org/show_bug.cgi?id=764119 --- gst/rtpmanager/gstrtpbin.c | 2 +- gst/rtpmanager/gstrtpsession.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index 9a0d201..e6bacf2 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -1068,7 +1068,7 @@ static void get_current_times (GstRtpBin * bin, GstClockTime * running_time, guint64 * ntpnstime) { - guint64 ntpns; + guint64 ntpns = -1; GstClock *clock; GstClockTime base_time, rt, clock_time; diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index ea19ce8..3914f36 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -1016,7 +1016,7 @@ static void get_current_times (GstRtpSession * rtpsession, GstClockTime * running_time, guint64 * ntpnstime) { - guint64 ntpns; + guint64 ntpns = -1; GstClock *clock; GstClockTime base_time, rt, clock_time; -- 2.7.4