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

Felix Paul Kühne git at videolan.org
Thu May 17 14:21:23 CEST 2012


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

macosx: another optimization for the wizard

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

 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 55a7fc6..1a09268 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