From 56d8e855e68c5f0d0a0f52787219ece6cd342d61 Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 8 Nov 2006 20:49:02 +0000 Subject: [PATCH] Fix inaccurate counting of elapsed time. Fixes #1946 --- campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx index 18a14f548..db1572ffc 100644 --- a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx +++ b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayer.cxx @@ -405,7 +405,7 @@ GstreamerPlayer :: getPosition(void) throw (std::logic_error) } GstFormat fmt = GST_FORMAT_TIME; - gst_element_query( decoder, GST_QUERY_POSITION, &fmt, &ns ); + gst_element_query(audiosink, GST_QUERY_POSITION, &fmt, &ns); length.reset(new time_duration(microseconds(ns / 1000LL)));