summaryrefslogtreecommitdiffstats
path: root/kttsd/players
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-04-12 23:41:32 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-04-12 23:41:32 -0500
commitd326d756b824c4fd37c36de1d47dae18144c1ca6 (patch)
treefc7dea308cc850403f8da8a8479e58567bc2ef63 /kttsd/players
parent2e81f74abdb967d02324be371d98357496063fc7 (diff)
downloadtdeaccessibility-d326d756b824c4fd37c36de1d47dae18144c1ca6.tar.gz
tdeaccessibility-d326d756b824c4fd37c36de1d47dae18144c1ca6.zip
Fix inadvertent "TQ" conversions.
Diffstat (limited to 'kttsd/players')
-rw-r--r--kttsd/players/gstplayer/gstreamerplayer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kttsd/players/gstplayer/gstreamerplayer.cpp b/kttsd/players/gstplayer/gstreamerplayer.cpp
index efc1916..35dc92d 100644
--- a/kttsd/players/gstplayer/gstreamerplayer.cpp
+++ b/kttsd/players/gstplayer/gstreamerplayer.cpp
@@ -94,18 +94,18 @@ bool GStreamerPlayer::paused() const
int GStreamerPlayer::totalTime() const
{
- return time(GST_TQUERY_TOTAL) / GST_SECOND;
+ return time(GST_QUERY_TOTAL) / GST_SECOND;
}
int GStreamerPlayer::currentTime() const
{
- return time(GST_TQUERY_POSITION) / GST_SECOND;
+ return time(GST_QUERY_POSITION) / GST_SECOND;
}
int GStreamerPlayer::position() const
{
- long long total = time(GST_TQUERY_TOTAL);
- long long current = time(GST_TQUERY_POSITION);
+ long long total = time(GST_QUERY_TOTAL);
+ long long current = time(GST_QUERY_POSITION);
return total > 0 ? int((double(current) / double(total)) * double(1000) + 0.5) : 0;
}
@@ -117,7 +117,7 @@ void GStreamerPlayer::seek(int seekTime)
void GStreamerPlayer::seekPosition(int position)
{
- long long total = time(GST_TQUERY_TOTAL);
+ long long total = time(GST_QUERY_TOTAL);
if(total > 0)
seek(int(double(position) / double(1000) * double(totalTime()) + 0.5));
}