Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index 1ebbbd8..19b64e8 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp | |||
@@ -192,25 +192,26 @@ int Lib::currentTime() { | |||
192 | 192 | ||
193 | int Lib::length() { | 193 | int Lib::length() { |
194 | xine_get_pos_length( m_stream, &m_pos, &m_time, &m_length ); | 194 | xine_get_pos_length( m_stream, &m_pos, &m_time, &m_length ); |
195 | return m_length/1000; | 195 | return m_length/1000; |
196 | } | 196 | } |
197 | 197 | ||
198 | bool Lib::isSeekable() { | 198 | bool Lib::isSeekable() { |
199 | return xine_get_stream_info( m_stream, XINE_STREAM_INFO_SEEKABLE ); | 199 | return xine_get_stream_info( m_stream, XINE_STREAM_INFO_SEEKABLE ); |
200 | } | 200 | } |
201 | 201 | ||
202 | void Lib::seekTo( int time ) { | 202 | void Lib::seekTo( int time ) { |
203 | //xine_trick_mode ( m_stream, XINE_TRICK_MODE_SEEK_TO_TIME, time ); NOT IMPLEMENTED YET IN XINE :_( | 203 | //xine_trick_mode ( m_stream, XINE_TRICK_MODE_SEEK_TO_TIME, time ); NOT IMPLEMENTED YET IN XINE :_( |
204 | xine_play( m_stream, 0, time ); | 204 | // since its now milliseconds we need *1000 |
205 | xine_play( m_stream, 0, time*1000 ); | ||
205 | } | 206 | } |
206 | 207 | ||
207 | 208 | ||
208 | Frame Lib::currentFrame() { | 209 | Frame Lib::currentFrame() { |
209 | Frame frame; | 210 | Frame frame; |
210 | return frame; | 211 | return frame; |
211 | }; | 212 | }; |
212 | 213 | ||
213 | QString Lib::metaInfo( int number) { | 214 | QString Lib::metaInfo( int number) { |
214 | return xine_get_meta_info( m_stream, number ); | 215 | return xine_get_meta_info( m_stream, number ); |
215 | } | 216 | } |
216 | 217 | ||