[vlc-commits] macosx: another optimization for the wizard

Felix Paul Kühne git at videolan.org
Mon May 21 14:26:47 CEST 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu May 17 14:21:15 2012 +0200| [bc48ec2f7849f3fabe2121922c11d91ae09c7b21] | committer: Felix Paul Kühne

macosx: another optimization for the wizard
(cherry picked from commit 962d96bf1137f12810233e04feea1462fa09f6cf)

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

 modules/gui/macosx/wizard.m |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/gui/macosx/wizard.m b/modules/gui/macosx/wizard.m
index 8bd47b3..47bb6dc 100644
--- a/modules/gui/macosx/wizard.m
+++ b/modules/gui/macosx/wizard.m
@@ -937,8 +937,8 @@ static VLCWizard *_o_sharedInstance = nil;
             [o_t5_matrix_encap selectCellAtRow:0 column:0];
         }
 
-        NSString * streamingMethod = [o_userSelections objectForKey:@"stmgMhd"];
-        if ( [streamingMethod isEqualToString: @"1"] )
+        NSInteger i_streamingMethod = [[o_userSelections objectForKey:@"stmgMhd"] intValue];
+        if ( i_streamingMethod == 1 )
         {
             /* if MMS is the streaming protocol, only ASFH is available */
             [[o_t5_matrix_encap cellAtRow:0 column:0] setEnabled:NO];
@@ -953,7 +953,7 @@ static VLCWizard *_o_sharedInstance = nil;
             [[o_t5_matrix_encap cellAtRow:9 column:0] setEnabled:YES];
             [o_t5_matrix_encap selectCellAtRow:9 column:0];
         }
-        else if ( [streamingMethod isEqualToString: @"0"] )
+        else if ( i_streamingMethod == 0 )
         {
             /* if HTTP is the streaming protocol, disable all unsupported
              * encap-formats, but don't touch the other ones selected above */
@@ -962,7 +962,7 @@ static VLCWizard *_o_sharedInstance = nil;
             [[o_t5_matrix_encap cellAtRow:8 column:0] setEnabled:NO];
             [[o_t5_matrix_encap cellAtRow:9 column:0] setEnabled:NO];
         }
-        else if ( [streamingMethod intValue] >= 2 )
+        else if ( i_streamingMethod >= 2 )
         {
             /* if UDP/RTP is the streaming protocol, only MPEG-TS is available */
             [[o_t5_matrix_encap cellAtRow:0 column:0] setEnabled:NO];



More information about the vlc-commits mailing list