rtsprange: Fix conversion from UTC to GstClockTime
authorOlivier CrĂȘte <olivier.crete@collabora.com>
Fri, 22 Feb 2013 18:18:10 +0000 (13:18 -0500)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 11 Mar 2013 09:41:09 +0000 (10:41 +0100)
Do the difference in the right direction.

gst-libs/gst/rtsp/gstrtsprange.c

index 73a19c5..f19e7a9 100644 (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 */