summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-02-25 15:49:11 +0200
committerTor Lillqvist <tml@collabora.com>2019-09-20 11:46:08 +0200
commitdb8fd12c2b7ab17583e71a2502274ed40861d0ae (patch)
tree00b098c868acb66d03784d700cce0a2ea0ecbfb6
parent364651f84ea839a1e8f4793de95c7a0f21f31bc7 (diff)
Fix build when !HAVE_FEATURE_AVMEDIA
Change-Id: I17fa4d503d197b9b7c7405281001ea92714494a9 (cherry picked from commit e54e668c51ec9230a3fc6a7cb1080d5696bea14e) Reviewed-on: https://gerrit.libreoffice.org/79172 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r--sd/source/ui/dlg/filedlg.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/filedlg.cxx b/sd/source/ui/dlg/filedlg.cxx
index 75b7a5783b1a..2b0626230d2a 100644
--- a/sd/source/ui/dlg/filedlg.cxx
+++ b/sd/source/ui/dlg/filedlg.cxx
@@ -119,6 +119,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl, void*, void)
OUString aUrl( GetPath() );
if ( !aUrl.isEmpty() )
{
+#if HAVE_FEATURE_AVMEDIA
try
{
mxPlayer.set( avmedia::MediaWindow::createPlayer( aUrl, "" ), css::uno::UNO_QUERY_THROW );
@@ -129,7 +130,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl, void*, void)
{
mxPlayer.clear();
}
-
+#endif
if (mxPlayer.is())
{
try