summaryrefslogtreecommitdiff
path: root/noncore
Unidiff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/xinecontrol.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/xinecontrol.cpp b/noncore/multimedia/opieplayer2/xinecontrol.cpp
index cf7dcb2..eba837e 100644
--- a/noncore/multimedia/opieplayer2/xinecontrol.cpp
+++ b/noncore/multimedia/opieplayer2/xinecontrol.cpp
@@ -88,25 +88,29 @@ void XineControl::stop( bool isSet ) {
88 mediaPlayerState->setList(); 88 mediaPlayerState->setList();
89 //mediaPlayerState->setPlaying( false ); 89 //mediaPlayerState->setPlaying( false );
90 } else { 90 } else {
91 // play again 91 // play again
92 } 92 }
93} 93}
94 94
95/** 95/**
96 * Pause playback 96 * Pause playback
97 * @isSet 97 * @isSet
98 */ 98 */
99void XineControl::pause( bool isSet) { 99void XineControl::pause( bool isSet) {
100 libXine->pause(); 100 if (isSet) {
101 libXine->pause();
102 } else {
103 libXine->play( m_fileName, 0, m_currentTime);
104 }
101} 105}
102 106
103 107
104/** 108/**
105 * get current time in playback 109 * get current time in playback
106 */ 110 */
107long XineControl::currentTime() { 111long XineControl::currentTime() {
108 // todo: jede sekunde überprüfen 112 // todo: jede sekunde überprüfen
109 m_currentTime = libXine->currentTime(); 113 m_currentTime = libXine->currentTime();
110 return m_currentTime; 114 return m_currentTime;
111 QTimer::singleShot( 1000, this, SLOT( currentTime() ) ); 115 QTimer::singleShot( 1000, this, SLOT( currentTime() ) );
112} 116}