Bin pointless nested #if HAVE_FEATURE_AVMEDIA

Change-Id: Id36265c5bd50d95105e3abf37e999aba80b4712c
This commit is contained in:
Tor Lillqvist 2019-10-07 15:14:02 +03:00
parent a1ed2eccb0
commit bb59923408

View file

@ -111,7 +111,6 @@ 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_SET_THROW );
@ -122,7 +121,7 @@ IMPL_LINK_NOARG(SdFileDialog_Imp, PlayMusicHdl, void*, void)
{
mxPlayer.clear();
}
#endif
if (mxPlayer.is())
{
try