[vlc-devel] commit: Qt: don't set scale, width & height when empty ( Jean-Baptiste Kempf )

git version control git at videolan.org
Fri May 1 00:40:04 CEST 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri May  1 00:38:49 2009 +0200| [3092afc3c91a172c43abdc7753f91446e10ded78] | committer: Jean-Baptiste Kempf 

Qt: don't set scale, width & height when empty

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3092afc3c91a172c43abdc7753f91446e10ded78
---

 .../gui/qt4/components/sout/profile_selector.cpp   |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/components/sout/profile_selector.cpp b/modules/gui/qt4/components/sout/profile_selector.cpp
index f4d1dd2..af61d30 100644
--- a/modules/gui/qt4/components/sout/profile_selector.cpp
+++ b/modules/gui/qt4/components/sout/profile_selector.cpp
@@ -184,10 +184,13 @@ void VLCProfileSelector::updateOptions( int i )
             if( options[4] != "none" )
             {
                 smrl.option( "vb", options[5].toInt() );
-                smrl.option( "scale", options[6] );
                 smrl.option( "fps", options[7] );
-                smrl.option( "width", options[8].toInt() );
-                smrl.option( "height", options[9].toInt() );
+                if( !options[6].isEmpty() )
+                    smrl.option( "scale", options[6] );
+                if( !options[8].isEmpty() )
+                    smrl.option( "width", options[8].toInt() );
+                if( !options[9].isEmpty() )
+                    smrl.option( "height", options[9].toInt() );
             }
         }
 




More information about the vlc-devel mailing list