mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 19:05:37 +00:00
rtsprange: Fix conversion from UTC to GstClockTime
Do the difference in the right direction.
This commit is contained in:
parent
aef8de337c
commit
203c27b42b
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ get_time (GstRTSPRangeUnit unit, const GstRTSPTime * t1,
|
||||||
/* convert to GDateTime without the seconds */
|
/* convert to GDateTime without the seconds */
|
||||||
dt = g_date_time_new_utc (t2->year, t2->month, t2->day, 0, 0, 0.0);
|
dt = g_date_time_new_utc (t2->year, t2->month, t2->day, 0, 0, 0.0);
|
||||||
/* get amount of microseconds */
|
/* 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 (bt);
|
||||||
g_date_time_unref (dt);
|
g_date_time_unref (dt);
|
||||||
/* add seconds */
|
/* add seconds */
|
||||||
|
|
Loading…
Reference in a new issue