Diffstat (limited to 'noncore/multimedia/opieplayer2/xinecontrol.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp index 7337c97..cc1a608 100644 --- a/noncore/multimedia/opieplayer2/xinecontrol.cpp +++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp | |||
@@ -105,16 +105,15 @@ int XineControl::currentTime() { | |||
105 | 105 | ||
106 | void XineControl::length() { | 106 | void XineControl::length() { |
107 | m_length = libXine->length(); | 107 | m_length = libXine->length(); |
108 | mediaPlayerState->setLength( m_length ); | 108 | mediaPlayerState->setLength( m_length ); |
109 | } | 109 | } |
110 | 110 | ||
111 | int XineControl::position() { | 111 | long XineControl::position() { |
112 | length(); | 112 | qDebug("<<<<<<<<<<<< xinecontrol setPostion>>>>>>>>>"); |
113 | qDebug("M_LENGTH :" + m_length); | 113 | m_position = (m_currentTime/m_length*100); |
114 | m_position = ( currentTime() /m_length*100); | ||
115 | mediaPlayerState->setPosition( m_position ); | 114 | mediaPlayerState->setPosition( m_position ); |
116 | long emitPos = (long)m_position; | 115 | long emitPos = (long)m_position; |
117 | emit positionChanged( emitPos ); | 116 | emit positionChanged( emitPos ); |
118 | QTimer::singleShot( 1000, this, SLOT( position() ) ); | 117 | QTimer::singleShot( 1000, this, SLOT( position() ) ); |
119 | qDebug("POSITION : " + m_position); | 118 | qDebug("POSITION : " + m_position); |
120 | return m_position; | 119 | return m_position; |
@@ -124,6 +123,7 @@ void XineControl::setFullscreen( bool isSet ) { | |||
124 | libXine->showVideoFullScreen( isSet); | 123 | libXine->showVideoFullScreen( isSet); |
125 | } | 124 | } |
126 | 125 | ||
127 | void XineControl::seekTo( long second ) { | 126 | void XineControl::seekTo( long second ) { |
128 | // libXine-> | 127 | // libXine-> |
129 | } | 128 | } |
129 | |||