[Libreoffice-commits] core.git: avmedia/source

Stephan Bergmann sbergman at redhat.com
Tue Apr 4 07:02:43 UTC 2017


 avmedia/source/vlc/vlcwindow.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit d53398fe04cb1ba1ed4d74c74377f71f697911b0
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Apr 4 09:01:59 2017 +0200

    Fix build
    
    Change-Id: Ic6644d03a7d6dd41422731d0b4015df831752087

diff --git a/avmedia/source/vlc/vlcwindow.cxx b/avmedia/source/vlc/vlcwindow.cxx
index e3c0ab26147c..1887f3ee1424 100644
--- a/avmedia/source/vlc/vlcwindow.cxx
+++ b/avmedia/source/vlc/vlcwindow.cxx
@@ -62,7 +62,7 @@ sal_Bool SAL_CALL VLCWindow::setZoomLevel( css::media::ZoomLevel eZoomLevel )
             meZoomLevel = eZoomLevel;
         }
 
-        switch ( static_cast<int>( eZoomLevel ) )
+        switch ( eZoomLevel )
         {
         case media::ZoomLevel_ORIGINAL:
         case media::ZoomLevel_FIT_TO_WINDOW_FIXED_ASPECT:
@@ -74,6 +74,8 @@ sal_Bool SAL_CALL VLCWindow::setZoomLevel( css::media::ZoomLevel eZoomLevel )
         case media::ZoomLevel_ZOOM_2_TO_1:
             mPlayer.setVideoSize( mSize.Width * 2, mSize.Height * 2 );
             break;
+        default:
+            break;
         }
 
         bRet = true;


More information about the Libreoffice-commits mailing list