From 203c27b42bf462fc180c92d4ec7d7c9c1063a900 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 22 Feb 2013 13:18:10 -0500 Subject: [PATCH] rtsprange: Fix conversion from UTC to GstClockTime Do the difference in the right direction. --- gst-libs/gst/rtsp/gstrtsprange.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/rtsp/gstrtsprange.c b/gst-libs/gst/rtsp/gstrtsprange.c index 73a19c5..f19e7a9 100644 --- a/gst-libs/gst/rtsp/gstrtsprange.c +++ b/gst-libs/gst/rtsp/gstrtsprange.c @@ -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 */ -- 2.7.4