author | simon <simon> | 2002-12-09 00:04:09 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-09 00:04:09 (UTC) |
commit | 88882051547c9c62f47fb83d87f1341ebccf99a7 (patch) (side-by-side diff) | |
tree | 7c5dec3d715b37c5c80fa9c017d55b57cf76cb7b /noncore/multimedia/opieplayer2/lib.cpp | |
parent | 373051a9f8e624e57bac83bb09af1840fef14b4c (diff) | |
download | opie-88882051547c9c62f47fb83d87f1341ebccf99a7.zip opie-88882051547c9c62f47fb83d87f1341ebccf99a7.tar.gz opie-88882051547c9c62f47fb83d87f1341ebccf99a7.tar.bz2 |
- use xine_set_param( ..., XINE_PARAM_SPEED, with XINE_SPEED_PAUSE and
XINE_SPEED_NORMAL to toggle between pause and playing state, instead of
attempting to re-start the stream at the last position
Diffstat (limited to 'noncore/multimedia/opieplayer2/lib.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/lib.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/multimedia/opieplayer2/lib.cpp b/noncore/multimedia/opieplayer2/lib.cpp index 1b5fd51..9e818eb 100644 --- a/noncore/multimedia/opieplayer2/lib.cpp +++ b/noncore/multimedia/opieplayer2/lib.cpp @@ -168,14 +168,14 @@ int Lib::play( const QString& fileName, int startPos, int start_time ) { void Lib::stop() { qDebug("<<<<<<<< STOP IN LIB TRIGGERED >>>>>>>"); xine_stop( m_stream ); } -void Lib::pause() { - xine_set_param( m_stream, XINE_PARAM_SPEED, XINE_SPEED_PAUSE ); +void Lib::pause( bool toggle ) { + xine_set_param( m_stream, XINE_PARAM_SPEED, toggle ? XINE_SPEED_PAUSE : XINE_SPEED_NORMAL ); } int Lib::speed() const { return xine_get_param ( m_stream, XINE_PARAM_SPEED ); } |