diff options
Diffstat (limited to 'slideshow')
-rw-r--r-- | slideshow/source/engine/shapes/viewmediashape.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/slideshow/source/engine/shapes/viewmediashape.cxx b/slideshow/source/engine/shapes/viewmediashape.cxx index d5982379deb6..ce507174cb49 100644 --- a/slideshow/source/engine/shapes/viewmediashape.cxx +++ b/slideshow/source/engine/shapes/viewmediashape.cxx @@ -128,7 +128,7 @@ namespace slideshow if( !mxPlayer.is() ) implInitialize( maBounds ); - if( mxPlayer.is() && ( mxPlayer->getDuration() > 0.0 ) ) + if (mxPlayer.is()) mxPlayer->start(); return true; @@ -170,7 +170,7 @@ namespace slideshow void ViewMediaShape::pauseMedia() { - if( mxPlayer.is() && ( mxPlayer->getDuration() > 0.0 ) ) + if (mxPlayer.is()) mxPlayer->stop(); } @@ -178,7 +178,7 @@ namespace slideshow void ViewMediaShape::setMediaTime(double fTime) { - if( mxPlayer.is() && ( mxPlayer->getDuration() > 0.0 ) ) + if (mxPlayer.is()) mxPlayer->setMediaTime(fTime); } |