summaryrefslogtreecommitdiffstats
path: root/slideshow/source/engine/soundplayer.cxx
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2019-02-27 23:20:31 +0800
committerMark Hung <marklh9@gmail.com>2019-03-01 00:24:05 +0100
commit71755f36394c1ffbf01af0180a05a258916dd5c9 (patch)
tree5ea1872a95852442c4e02aacff5d5ff4834c31cb /slideshow/source/engine/soundplayer.cxx
parentFix typo (diff)
downloadcore-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.cxx5
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();
+ }
}
}