Commit 962d96bf authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: another optimization for the wizard

parent 0802130a
...@@ -937,8 +937,8 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -937,8 +937,8 @@ static VLCWizard *_o_sharedInstance = nil;
[o_t5_matrix_encap selectCellAtRow:0 column:0]; [o_t5_matrix_encap selectCellAtRow:0 column:0];
} }
NSString * streamingMethod = [o_userSelections objectForKey:@"stmgMhd"]; NSInteger i_streamingMethod = [[o_userSelections objectForKey:@"stmgMhd"] intValue];
if ( [streamingMethod isEqualToString: @"1"] ) if ( i_streamingMethod == 1 )
{ {
/* if MMS is the streaming protocol, only ASFH is available */ /* if MMS is the streaming protocol, only ASFH is available */
[[o_t5_matrix_encap cellAtRow:0 column:0] setEnabled:NO]; [[o_t5_matrix_encap cellAtRow:0 column:0] setEnabled:NO];
...@@ -953,7 +953,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -953,7 +953,7 @@ static VLCWizard *_o_sharedInstance = nil;
[[o_t5_matrix_encap cellAtRow:9 column:0] setEnabled:YES]; [[o_t5_matrix_encap cellAtRow:9 column:0] setEnabled:YES];
[o_t5_matrix_encap selectCellAtRow:9 column:0]; [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 /* if HTTP is the streaming protocol, disable all unsupported
* encap-formats, but don't touch the other ones selected above */ * encap-formats, but don't touch the other ones selected above */
...@@ -962,7 +962,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -962,7 +962,7 @@ static VLCWizard *_o_sharedInstance = nil;
[[o_t5_matrix_encap cellAtRow:8 column:0] setEnabled:NO]; [[o_t5_matrix_encap cellAtRow:8 column:0] setEnabled:NO];
[[o_t5_matrix_encap cellAtRow:9 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 */ /* if UDP/RTP is the streaming protocol, only MPEG-TS is available */
[[o_t5_matrix_encap cellAtRow:0 column:0] setEnabled:NO]; [[o_t5_matrix_encap cellAtRow:0 column:0] setEnabled:NO];
......
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