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
This commit is contained in:
Minjae Kim 2016-03-24 15:57:11 +09:00 committed by Sebastian Dröge
parent 3549aa7924
commit eb13a1d607
2 changed files with 2 additions and 2 deletions

View 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;

View 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;