summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/CppunitTest_slideshow.mk1
-rw-r--r--slideshow/source/engine/shapes/viewmediashape.cxx11
2 files changed, 9 insertions, 3 deletions
diff --git a/slideshow/CppunitTest_slideshow.mk b/slideshow/CppunitTest_slideshow.mk
index bc5c9a5944ec..2207a8321fb0 100644
--- a/slideshow/CppunitTest_slideshow.mk
+++ b/slideshow/CppunitTest_slideshow.mk
@@ -36,7 +36,6 @@ $(eval $(call gb_CppunitTest_use_api,slideshow,\
$(eval $(call gb_CppunitTest_use_library_objects,slideshow,slideshow))
$(eval $(call gb_CppunitTest_use_libraries,slideshow,\
- avmedia \
basegfx \
canvastools \
comphelper \
diff --git a/slideshow/source/engine/shapes/viewmediashape.cxx b/slideshow/source/engine/shapes/viewmediashape.cxx
index 7f3c2e7c8f00..135a372959b3 100644
--- a/slideshow/source/engine/shapes/viewmediashape.cxx
+++ b/slideshow/source/engine/shapes/viewmediashape.cxx
@@ -17,8 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <config_features.h>
-// must be first
#include <canvas/debug.hxx>
#include <tools/diagnose_ex.h>
#include <canvas/verbosetrace.hxx>
@@ -180,6 +180,9 @@ namespace slideshow
bool ViewMediaShape::render( const ::basegfx::B2DRectangle& rBounds ) const
{
+#if !HAVE_FEATURE_AVMEDIA
+ (void) rBounds;
+#else
::cppcanvas::CanvasSharedPtr pCanvas = mpViewLayer->getCanvas();
if( !pCanvas )
@@ -216,7 +219,7 @@ namespace slideshow
aViewState,
aRenderState );
}
-
+#endif
return true;
}
@@ -401,6 +404,9 @@ namespace slideshow
void ViewMediaShape::implInitializeMediaPlayer( const OUString& rMediaURL )
{
+#if !HAVE_FEATURE_AVMEDIA
+ (void) rMediaURL;
+#else
if( !mxPlayer.is() )
{
try
@@ -422,6 +428,7 @@ namespace slideshow
uno::Reference<uno::XInterface>() );
}
}
+#endif
}