From 2ce852a050475264d2916d48eb280b3e4c8f124a Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 8 Nov 2006 16:29:43 +0000 Subject: [PATCH] Hack for legacy Boost versions is no longer needed. --- .../src/modules/playlistExecutor/src/GstreamerPlayer.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx index dae30712b..18a14f548 100644 --- a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx +++ b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx @@ -407,14 +407,7 @@ GstreamerPlayer :: getPosition(void) throw (std::logic_error) GstFormat fmt = GST_FORMAT_TIME; gst_element_query( decoder, GST_QUERY_POSITION, &fmt, &ns ); - // this is necessary for boost version < 1.33.0 - gint64 us = ns / 1000LL; - long s = us / 1000000LL; - long frac_s = us % 1000000LL; - length.reset(new time_duration(seconds(s) + microseconds(frac_s))); - - // if we can be sure that boost >= 1.33.0, then we can write this instead: - // length.reset(new time_duration(microseconds(ns / 1000LL))); + length.reset(new time_duration(microseconds(ns / 1000LL))); return length; }