rtsprange: Fix conversion from UTC to GstClockTime

Do the difference in the right direction.
This commit is contained in:
Olivier Crête 2013-02-22 13:18:10 -05:00 committed by Wim Taymans
parent aef8de337c
commit 203c27b42b

View file

@ -489,7 +489,7 @@ get_time (GstRTSPRangeUnit unit, const GstRTSPTime * t1,
/* convert to GDateTime without the seconds */
dt = g_date_time_new_utc (t2->year, t2->month, t2->day, 0, 0, 0.0);
/* get amount of microseconds */
span = g_date_time_difference (bt, dt);
span = g_date_time_difference (dt, bt);
g_date_time_unref (bt);
g_date_time_unref (dt);
/* add seconds */