Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 878cd4a..19a9172 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -82,3 +82,2 @@ void XineControl::play( const QString& fileName ) { | |||
82 | position(); | 82 | position(); |
83 | |||
84 | } | 83 | } |
@@ -99,3 +98,3 @@ void XineControl::pause( bool isSet) { | |||
99 | 98 | ||
100 | int XineControl::currentTime() { | 99 | long XineControl::currentTime() { |
101 | // todo: jede sekunde überprüfen | 100 | // todo: jede sekunde überprüfen |
@@ -112,4 +111,3 @@ void XineControl::length() { | |||
112 | long XineControl::position() { | 111 | long XineControl::position() { |
113 | qDebug("<<<<<<<<<<<< xinecontrol setPostion>>>>>>>>>"); | 112 | m_position = ( currentTime() ); |
114 | m_position = (m_currentTime/m_length*100); | ||
115 | mediaPlayerState->setPosition( m_position ); | 113 | mediaPlayerState->setPosition( m_position ); |
@@ -117,5 +115,6 @@ long XineControl::position() { | |||
117 | emit positionChanged( emitPos ); | 115 | emit positionChanged( emitPos ); |
116 | if(mediaPlayerState->isPlaying) | ||
118 | // needs to be stopped the media is stopped | 117 | // needs to be stopped the media is stopped |
119 | QTimer::singleShot( 1000, this, SLOT( position() ) ); | 118 | QTimer::singleShot( 1000, this, SLOT( position() ) ); |
120 | qDebug("POSITION : " + m_position); | 119 | // qDebug("POSITION : %d", m_position); |
121 | return m_position; | 120 | return m_position; |