diff options
author | Mark Hung <marklh9@gmail.com> | 2019-02-27 23:20:31 +0800 |
---|---|---|
committer | Mark Hung <marklh9@gmail.com> | 2019-03-01 00:24:05 +0100 |
commit | 71755f36394c1ffbf01af0180a05a258916dd5c9 (patch) | |
tree | 5ea1872a95852442c4e02aacff5d5ff4834c31cb /slideshow/source/engine/soundplayer.cxx | |
parent | Fix typo (diff) | |
download | core-71755f36394c1ffbf01af0180a05a258916dd5c9.tar.gz core-71755f36394c1ffbf01af0180a05a258916dd5c9.zip |
tdf#123743 deactive after the player is stopped.
The queried media duration for gstreamer isn't ready at the beginning.
Instead of deactivate the audio node immediately after querying the
duration, schedule to update the media duration and use the updated
duration to schedule deactivation.
Change-Id: I8bfa69377fbc18b21baf48bc293d2d0853e8805a
Reviewed-on: https://gerrit.libreoffice.org/68451
Tested-by: Jenkins
Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'slideshow/source/engine/soundplayer.cxx')
-rw-r--r-- | slideshow/source/engine/soundplayer.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/slideshow/source/engine/soundplayer.cxx b/slideshow/source/engine/soundplayer.cxx index 65b578304d62..18a1948089f9 100644 --- a/slideshow/source/engine/soundplayer.cxx +++ b/slideshow/source/engine/soundplayer.cxx @@ -170,6 +170,11 @@ namespace slideshow if( mxPlayer.is() ) mxPlayer->setPlaybackLoop( bLoop ); } + + bool SoundPlayer::isPlaying() const + { + return mxPlayer->isPlaying(); + } } } |