diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-02-25 15:49:11 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-02-25 15:55:57 +0200 |
commit | 79d7e69384ed7af40f1f87965f5f5dc723d8e188 (patch) | |
tree | ecc79f038e4c23b29c7842bfe7d822126ddfbff6 /sd/source | |
parent | 42e8bf6df607f13ed31e73a597ff62ff5c532f03 (diff) |
Fix build when !HAVE_FEATURE_AVMEDIA
Change-Id: I17fa4d503d197b9b7c7405281001ea92714494a9
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/dlg/filedlg.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/filedlg.cxx b/sd/source/ui/dlg/filedlg.cxx index 063d70476408..ab9653fdc766 100644 --- a/sd/source/ui/dlg/filedlg.cxx +++ b/sd/source/ui/dlg/filedlg.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_features.h> + #include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/ui/dialogs/CommonFilePickerElementIds.hpp> @@ -116,6 +118,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 ); @@ -126,7 +129,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl, void*, void) { mxPlayer.clear(); } - +#endif if (mxPlayer.is()) { try |