tdf#148654 stop playing sound with presentation ends

Change-Id: I74aa4cd966b6966f7826d241fcf9bb9d64955464
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133394
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
(cherry picked from commit 83bda568df0c6a65337922e20b6c7b74e20db415)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133406
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
(cherry picked from commit d293877ff029ae7c161ccfbade992485fd92fe75)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133412
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index b0b8163..da55f7e 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -1351,6 +1351,8 @@ IMPL_LINK_NOARG(SlideshowImpl, endPresentationHdl, void*, void)
{
    mnEndShowEvent = nullptr;

    stopSound();

    if( mxPresentation.is() )
        mxPresentation->end();
}