author | llornkcor <llornkcor> | 2002-08-03 13:17:17 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-08-03 13:17:17 (UTC) |
commit | c703646da474df28651ec49d5d649d07f994c614 (patch) (unidiff) | |
tree | fabd01c32565fc851b46446fb2f5a07538b23761 /noncore/multimedia/opieplayer2/xinecontrol.cpp | |
parent | 6599cb97da09fc05bbe6e6380c1c0bb128ecb034 (diff) | |
download | opie-c703646da474df28651ec49d5d649d07f994c614.zip opie-c703646da474df28651ec49d5d649d07f994c614.tar.gz opie-c703646da474df28651ec49d5d649d07f994c614.tar.bz2 |
fixed incompatible types
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 | |||