summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/shapes/viewmediashape.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/slideshow/source/engine/shapes/viewmediashape.cxx b/slideshow/source/engine/shapes/viewmediashape.cxx
index 0ff36b81f6dc..833f5b3e5edd 100644
--- a/slideshow/source/engine/shapes/viewmediashape.cxx
+++ b/slideshow/source/engine/shapes/viewmediashape.cxx
@@ -96,26 +96,23 @@ namespace slideshow
}
}
-
ViewMediaShape::~ViewMediaShape()
{
try
{
endMedia();
}
- catch (uno::Exception &)
+ catch (const uno::Exception &e)
{
- SAL_WARN( "slideshow", comphelper::anyToString( cppu::getCaughtException() ) );
+ SAL_WARN("slideshow", "" << e.Message);
}
}
-
const ViewLayerSharedPtr& ViewMediaShape::getViewLayer() const
{
return mpViewLayer;
}
-
void ViewMediaShape::startMedia()
{
if( !mxPlayer.is() )
@@ -125,7 +122,6 @@ namespace slideshow
mxPlayer->start();
}
-
void ViewMediaShape::endMedia()
{
// shutdown player window
@@ -156,21 +152,18 @@ namespace slideshow
}
}
-
void ViewMediaShape::pauseMedia()
{
if (mxPlayer.is())
mxPlayer->stop();
}
-
void ViewMediaShape::setMediaTime(double fTime)
{
if (mxPlayer.is())
mxPlayer->setMediaTime(fTime);
}
-
bool ViewMediaShape::render( const ::basegfx::B2DRectangle& rBounds ) const
{
#if !HAVE_FEATURE_AVMEDIA