summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/xinecontrol.cpp
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp
index cc1a608..878cd4a 100644
--- a/noncore/multimedia/opieplayer2/xinecontrol.cpp
+++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp
@@ -101,6 +101,7 @@ int XineControl::currentTime() {
101 // todo: jede sekunde überprüfen 101 // todo: jede sekunde überprüfen
102 m_currentTime = libXine->currentTime(); 102 m_currentTime = libXine->currentTime();
103 return m_currentTime; 103 return m_currentTime;
104 QTimer::singleShot( 1000, this, SLOT( currentTime() ) );
104} 105}
105 106
106void XineControl::length() { 107void XineControl::length() {
@@ -114,6 +115,7 @@ long XineControl::position() {
114 mediaPlayerState->setPosition( m_position ); 115 mediaPlayerState->setPosition( m_position );
115 long emitPos = (long)m_position; 116 long emitPos = (long)m_position;
116 emit positionChanged( emitPos ); 117 emit positionChanged( emitPos );
118 // needs to be stopped the media is stopped
117 QTimer::singleShot( 1000, this, SLOT( position() ) ); 119 QTimer::singleShot( 1000, this, SLOT( position() ) );
118 qDebug("POSITION : " + m_position); 120 qDebug("POSITION : " + m_position);
119 return m_position; 121 return m_position;