rtsprange: use gst_util_gdouble_to_guint64 in get_seconds

https://bugzilla.gnome.org/show_bug.cgi?id=696818
This commit is contained in:
David Svensson Fors 2013-03-28 23:02:11 +01:00 committed by Olivier Crête
parent 4f1ba51c4b
commit 5ef9921bcd

View file

@ -493,7 +493,7 @@ get_seconds (const GstRTSPTime * t)
gst_util_double_to_fraction (t->seconds, &num, &denom); gst_util_double_to_fraction (t->seconds, &num, &denom);
return gst_util_uint64_scale_int (GST_SECOND, num, denom); return gst_util_uint64_scale_int (GST_SECOND, num, denom);
} else { } else {
return t->seconds * GST_SECOND; return gst_util_gdouble_to_guint64 (t->seconds * GST_SECOND);
} }
} }