From: Minjae Kim Date: Thu, 24 Mar 2016 06:57:11 +0000 (+0900) Subject: rtpmanager: Set to initial value for 'ntpns' in get_current_times() X-Git-Tag: 1.19.3~509^2~2860 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eb13a1d6076212d85e1093ed18840a4704771347;p=platform%2Fupstream%2Fgstreamer.git 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 --- 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;