rtpmanager: Set to initial value for 'ntpns' in get_current_times()
authorMinjae Kim <nate.kim@lge.com>
Thu, 24 Mar 2016 06:57:11 +0000 (15:57 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 29 Mar 2016 07:21:07 +0000 (10:21 +0300)
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
gst/rtpmanager/gstrtpsession.c

index 9a0d201..e6bacf2 100644 (file)
@@ -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;
 
index ea19ce8..3914f36 100644 (file)
@@ -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;