Commit 3092afc3 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

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

parent 612de111
...@@ -184,9 +184,12 @@ void VLCProfileSelector::updateOptions( int i ) ...@@ -184,9 +184,12 @@ void VLCProfileSelector::updateOptions( int i )
if( options[4] != "none" ) if( options[4] != "none" )
{ {
smrl.option( "vb", options[5].toInt() ); smrl.option( "vb", options[5].toInt() );
smrl.option( "scale", options[6] );
smrl.option( "fps", options[7] ); smrl.option( "fps", options[7] );
if( !options[6].isEmpty() )
smrl.option( "scale", options[6] );
if( !options[8].isEmpty() )
smrl.option( "width", options[8].toInt() ); smrl.option( "width", options[8].toInt() );
if( !options[9].isEmpty() )
smrl.option( "height", options[9].toInt() ); smrl.option( "height", options[9].toInt() );
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment