summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/lib.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp
index f1b9773..6ed4cea 100644
--- a/noncore/multimedia/opieplayer2/lib.cpp
+++ b/noncore/multimedia/opieplayer2/lib.cpp
@@ -133,2 +133,3 @@ void Lib::initialize()
133 m_stream = xine_stream_new (m_xine, m_audioOutput, m_videoOutput ); 133 m_stream = xine_stream_new (m_xine, m_audioOutput, m_videoOutput );
134 xine_set_param( m_stream, XINE_PARAM_AUDIO_CLOSE_DEVICE, 1);
134 135
@@ -204,2 +205,3 @@ void Lib::stop() {
204 xine_stop( m_stream ); 205 xine_stop( m_stream );
206 xine_set_param( m_stream, XINE_PARAM_AUDIO_CLOSE_DEVICE, 1);
205} 207}
@@ -209,3 +211,10 @@ void Lib::pause( bool toggle ) {
209 211
210 xine_set_param( m_stream, XINE_PARAM_SPEED, toggle ? XINE_SPEED_PAUSE : XINE_SPEED_NORMAL ); 212 if ( toggle ) {
213 xine_set_param( m_stream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE );
214 xine_set_param( m_stream, XINE_PARAM_AUDIO_CLOSE_DEVICE, 1);
215 }
216
217 else {
218 xine_set_param( m_stream, XINE_PARAM_SPEED, XINE_SPEED_NORMAL );
219 }
211} 220}
@@ -284,3 +293,13 @@ void Lib::seekTo( int time ) {
284 293
294 odebug << "Seeking to second " << time << oendl;
295 //Keep it paused if it was in that state
296 if ( xine_get_param( m_stream, XINE_PARAM_SPEED ) ) {
297 xine_play( m_stream, 0, time*1000 );
298 }
299
300 else {
285 xine_play( m_stream, 0, time*1000 ); 301 xine_play( m_stream, 0, time*1000 );
302 xine_set_param( m_stream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE );
303 }
304
286} 305}