author | harlekin <harlekin> | 2002-08-05 23:58:16 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-08-05 23:58:16 (UTC) |
commit | d96244956f42782f987acc2b5efb32dc1f1dd70a (patch) (side-by-side diff) | |
tree | 0e1652d36a7ee2b38568fb5686057864b03bf85a | |
parent | 6577ed5401ef1374b57a58dd459e91c10899e097 (diff) | |
download | opie-d96244956f42782f987acc2b5efb32dc1f1dd70a.zip opie-d96244956f42782f987acc2b5efb32dc1f1dd70a.tar.gz opie-d96244956f42782f987acc2b5efb32dc1f1dd70a.tar.bz2 |
pause should be right now
-rw-r--r-- | noncore/multimedia/opieplayer2/xinecontrol.cpp | 4 |
1 files changed, 4 insertions, 0 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 @@ -84,33 +84,37 @@ void XineControl::play( const QString& fileName ) { void XineControl::stop( bool isSet ) { if ( !isSet) { libXine->stop(); mediaPlayerState->setList(); //mediaPlayerState->setPlaying( false ); } else { // play again } } /** * Pause playback * @isSet */ void XineControl::pause( bool isSet) { + if (isSet) { libXine->pause(); + } else { + libXine->play( m_fileName, 0, m_currentTime); + } } /** * get current time in playback */ long XineControl::currentTime() { // todo: jede sekunde überprüfen m_currentTime = libXine->currentTime(); return m_currentTime; QTimer::singleShot( 1000, this, SLOT( currentTime() ) ); } /** * Set the length of the media file */ |