Changeset b60815ca26a806295facb9d47bc0657ed39eb9b2
- Timestamp:
- 06/03/02 00:32:46 (6 years ago)
- git-parent:
- Files:
-
- ChangeLog (modified) (1 diff)
- extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib (modified) (2 diffs)
- plugins/macosx/intf_controller.m (modified) (3 diffs)
- plugins/macosx/intf_open.h (modified) (3 diffs)
- plugins/macosx/intf_open.m (modified) (3 diffs)
- plugins/macosx/intf_vlc_wrapper.h (modified) (2 diffs)
- plugins/macosx/intf_vlc_wrapper.m (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ChangeLog
r695669c rb60815c 37 37 Not released yet 38 38 39 * ./plugins/macosx: rewrote the net panel for OS X 39 40 * ./plugins/spudec/spu_decoder.c: fixed a margin bug in the SPU renderer 40 41 which caused subtitles to appear slanted in odd width windows. extras/MacOSX/Resources/English.lproj/MainMenu.nib/classes.nib
r9b21679 rb60815c 42 42 openFile = id; 43 43 openNet = id; 44 openNetBroadcast = id; 45 openNetChannel = id; 44 openNetProtocol = id; 46 45 panelCancel = id; 47 46 panelOk = id; … … 55 54 o_disc_title = id; 56 55 o_disc_type = id; 57 o_net_channel_addr = id;58 o_net_channel_checkbox = id;59 o_net_channel_port = id;60 o_net_channel_port_label = id;61 o_net_channel_pstepper = id;62 56 o_net_panel = id; 63 57 o_net_protocol = id; 64 58 o_net_server_addr = id; 65 59 o_net_server_addr_label = id; 66 o_net_server_baddr = id;67 o_net_server_bcheckbox = id;68 60 o_net_server_port = id; 69 61 o_net_server_port_label = id; plugins/macosx/intf_controller.m
r9b21679 rb60815c 3 3 ***************************************************************************** 4 4 * Copyright (C) 2001 VideoLAN 5 * $Id: intf_controller.m,v 1. 7 2002/06/02 12:16:31massiot Exp $5 * $Id: intf_controller.m,v 1.8 2002/06/02 22:31:52 massiot Exp $ 6 6 * 7 7 * Authors: Florian G. Pflug <fgp@phlo.org> … … 249 249 { 250 250 NSMenuItem * o_item = (NSMenuItem *)sender; 251 252 if ( [o_item tag] == 12 || [o_item tag] == 13 ) 251 int tag = [o_item tag]; 252 253 if ( tag == 12 || tag == 13 ) 253 254 { 254 255 if( !config_GetIntVariable( "network-channel" ) ) … … 256 257 return NO; 257 258 } 259 if ( tag == 12 && !p_main->p_intf->p_sys->i_channel ) 260 { 261 return NO; 262 } 258 263 } 259 264 plugins/macosx/intf_open.h
r3a361d2 rb60815c 3 3 ***************************************************************************** 4 4 * Copyright (C) 2001 VideoLAN 5 * $Id: intf_open.h,v 1. 2 2002/05/06 22:59:46massiot Exp $5 * $Id: intf_open.h,v 1.3 2002/06/02 22:31:52 massiot Exp $ 6 6 * 7 7 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> … … 42 42 IBOutlet id o_net_panel; 43 43 IBOutlet id o_net_protocol; 44 IBOutlet id o_net_channel_addr;45 IBOutlet id o_net_channel_checkbox;46 IBOutlet id o_net_channel_port;47 IBOutlet id o_net_channel_port_label;48 IBOutlet id o_net_channel_pstepper;49 44 IBOutlet id o_net_server_addr; 50 45 IBOutlet id o_net_server_addr_label; 51 IBOutlet id o_net_server_baddr;52 IBOutlet id o_net_server_bcheckbox;53 46 IBOutlet id o_net_server_port; 54 47 IBOutlet id o_net_server_port_label; … … 66 59 67 60 - (IBAction)openNet:(id)sender; 68 - (IBAction)openNetBroadcast:(id)sender; 69 - (IBAction)openNetChannel:(id)sender; 61 - (IBAction)openNetProtocol:(id)sender; 70 62 71 63 - (IBAction)panelCancel:(id)sender; plugins/macosx/intf_open.m
r54e1790 rb60815c 3 3 ***************************************************************************** 4 4 * Copyright (C) 2001 VideoLAN 5 * $Id: intf_open.m,v 1. 3 2002/05/23 22:18:55 jljExp $5 * $Id: intf_open.m,v 1.4 2002/06/02 22:31:52 massiot Exp $ 6 6 * 7 7 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> … … 140 140 - (void)awakeFromNib 141 141 { 142 [o_net_channel_pstepper setEnabled: FALSE]; 143 144 [o_net_server_addr addItemWithObjectValue: @"vls"]; 145 [o_net_server_addr selectItemAtIndex: 0]; 146 147 [o_net_server_baddr setStringValue: @"138.195.159.255"]; 142 [o_net_server_addr setEnabled: NSOffState]; 143 [o_net_server_addr_label setStringValue: @"Address"]; 144 [o_net_server_port setEnabled: NSOnState]; 148 145 [o_net_server_port setIntValue: 1234]; 146 [o_net_server_pstepper setEnabled: NSOnState]; 149 147 [o_net_server_pstepper setIntValue: [o_net_server_port intValue]]; 150 151 [o_net_channel_addr setStringValue: @"vlcs"];152 [o_net_channel_port setIntValue: 6010];153 [o_net_channel_pstepper setIntValue: [o_net_channel_port intValue]];154 148 } 155 149 … … 243 237 if( i_result ) 244 238 { 245 BOOL b_channel;246 BOOL b_broadcast;247 239 NSString *o_protocol; 240 int i_port = [o_net_server_port intValue]; 241 NSString *o_addr = [o_net_server_addr stringValue]; 248 242 249 243 o_protocol = [[o_net_protocol selectedCell] title]; 250 b_channel = [o_net_channel_checkbox state] == NSOnState; 251 b_broadcast = [o_net_server_bcheckbox state] == NSOnState; 252 253 if( [o_protocol isEqualToString: @"TS"] ) 254 { 255 o_protocol = @"udpstream"; 256 } 257 else if( [o_protocol isEqualToString: @"RTP"] ) 258 { 259 o_protocol = @"rtp"; 260 } 261 262 if( b_channel ) 263 { 264 NSString *o_channel_addr = [o_net_channel_addr stringValue]; 265 int i_channel_port = [o_net_channel_port intValue]; 266 267 [[Intf_VLCWrapper instance] 268 openNetChannel: o_channel_addr port: i_channel_port]; 269 } 270 else 271 { 272 NSString *o_addr = [o_net_server_addr stringValue]; 273 int i_port = [o_net_server_port intValue]; 274 275 if( b_broadcast ) 276 { 277 NSString *o_baddr = [o_net_server_baddr stringValue]; 278 279 [[Intf_VLCWrapper instance] 280 openNet: o_protocol addr: o_addr 281 port: i_port baddr: o_baddr]; 282 } 283 else 284 { 285 [[Intf_VLCWrapper instance] 286 openNet: o_protocol addr: o_addr 287 port: i_port baddr: nil]; 288 } 289 } 290 } 291 } 292 293 - (IBAction)openNetBroadcast:(id)sender 294 { 295 BOOL b_broadcast; 296 297 b_broadcast = [o_net_server_bcheckbox state] == NSOnState; 298 [o_net_server_baddr setEnabled: b_broadcast]; 299 } 300 301 - (IBAction)openNetChannel:(id)sender 302 { 303 BOOL b_channel; 304 BOOL b_broadcast; 305 NSColor *o_color; 306 307 b_channel = [o_net_channel_checkbox state] == NSOnState; 308 b_broadcast = [o_net_server_bcheckbox state] == NSOnState; 309 310 o_color = b_channel ? [NSColor controlTextColor] : 311 [NSColor disabledControlTextColor]; 312 313 [o_net_channel_addr setEnabled: b_channel]; 314 [o_net_channel_port setEnabled: b_channel]; 315 [o_net_channel_port_label setTextColor: o_color]; 316 [o_net_channel_pstepper setEnabled: b_channel]; 317 318 o_color = !b_channel ? [NSColor controlTextColor] : 319 [NSColor disabledControlTextColor]; 320 321 [o_net_server_addr setEnabled: !b_channel]; 322 [o_net_server_addr_label setTextColor: o_color]; 323 [o_net_server_port setEnabled: !b_channel]; 324 [o_net_server_port_label setTextColor: o_color]; 325 [o_net_server_pstepper setEnabled: !b_channel]; 326 [o_net_server_bcheckbox setEnabled: !b_channel]; 327 [o_net_server_baddr setEnabled: b_broadcast && !b_channel]; 244 245 if( [o_protocol isEqualToString: @"UDP"] ) 246 { 247 [[Intf_VLCWrapper instance] openNet: @"" port: i_port]; 248 } 249 else if( [o_protocol isEqualToString: @"UDP - multicast"] ) 250 { 251 [[Intf_VLCWrapper instance] openNet: o_addr port: i_port]; 252 } 253 else if( [o_protocol isEqualToString: @"Channel server"] ) 254 { 255 [[Intf_VLCWrapper instance] openNetChannel: o_addr port: i_port]; 256 } 257 else if( [o_protocol isEqualToString: @"HTTP"] ) 258 { 259 [[Intf_VLCWrapper instance] openNetHTTP: o_addr]; 260 } 261 } 262 } 263 264 - (IBAction)openNetProtocol:(id)sender 265 { 266 NSString *o_protocol; 267 268 o_protocol = [[o_net_protocol selectedCell] title]; 269 270 if( [o_protocol isEqualToString: @"UDP"] ) 271 { 272 [o_net_server_addr setEnabled: NSOffState]; 273 [o_net_server_port setEnabled: NSOnState]; 274 [o_net_server_port setIntValue: 1234]; 275 [o_net_server_pstepper setEnabled: NSOnState]; 276 } 277 else if( [o_protocol isEqualToString: @"UDP - multicast"] ) 278 { 279 [o_net_server_addr setEnabled: NSOnState]; 280 [o_net_server_addr_label setStringValue: @"Mult. addr."]; 281 [o_net_server_port setEnabled: NSOnState]; 282 [o_net_server_port setIntValue: 1234]; 283 [o_net_server_pstepper setEnabled: NSOnState]; 284 } 285 else if( [o_protocol isEqualToString: @"Channel server"] ) 286 { 287 [o_net_server_addr setEnabled: NSOnState]; 288 [o_net_server_addr_label setStringValue: @"Server"]; 289 [o_net_server_addr setStringValue: @"vlcs"]; 290 [o_net_server_port setEnabled: NSOnState]; 291 [o_net_server_port setIntValue: 6010]; 292 [o_net_server_pstepper setEnabled: NSOnState]; 293 } 294 else if( [o_protocol isEqualToString: @"HTTP"] ) 295 { 296 [o_net_server_addr setEnabled: NSOnState]; 297 [o_net_server_addr_label setStringValue: @"URL"]; 298 [o_net_server_addr setStringValue: @"http://"]; 299 [o_net_server_port setEnabled: NSOffState]; 300 [o_net_server_pstepper setEnabled: NSOffState]; 301 } 302 [o_net_server_pstepper setIntValue: [o_net_server_port intValue]]; 328 303 } 329 304 plugins/macosx/intf_vlc_wrapper.h
r9b21679 rb60815c 3 3 ***************************************************************************** 4 4 * Copyright (C) 2001 VideoLAN 5 * $Id: intf_vlc_wrapper.h,v 1.1 0 2002/06/02 12:16:31massiot Exp $5 * $Id: intf_vlc_wrapper.h,v 1.11 2002/06/02 22:31:52 massiot Exp $ 6 6 * 7 7 * Authors: Florian G. Pflug <fgp@phlo.org> … … 73 73 - (void)openFiles:(NSArray*)o_files; 74 74 - (void)openDisc:(NSString*)o_type device:(NSString*)o_device title:(int)i_title chapter:(int)i_chapter; 75 - (void)openNet:(NSString*)o_ protocol addr:(NSString*)o_addr port:(int)i_port baddr:(NSString*)o_baddr;75 - (void)openNet:(NSString*)o_addr port:(int)i_port; 76 76 - (void)openNetChannel:(NSString*)o_addr port:(int)i_port; 77 - (void)openNetHTTP:(NSString*)o_addr; 77 78 78 79 /* menus management */ plugins/macosx/intf_vlc_wrapper.m
r9b21679 rb60815c 3 3 ***************************************************************************** 4 4 * Copyright (C) 2001 VideoLAN 5 * $Id: intf_vlc_wrapper.m,v 1.1 1 2002/06/02 12:16:31massiot Exp $5 * $Id: intf_vlc_wrapper.m,v 1.12 2002/06/02 22:31:52 massiot Exp $ 6 6 * 7 7 * Authors: Florian G. Pflug <fgp@phlo.org> … … 579 579 } 580 580 581 - (void)openNet:(NSString*)o_ protocol addr:(NSString*)o_addr port:(int)i_port baddr:(NSString*)o_baddr581 - (void)openNet:(NSString*)o_addr port:(int)i_port 582 582 { 583 583 NSString *o_source; … … 590 590 } 591 591 592 config_PutIntVariable( "network_channel", 0 ); 593 594 if( o_baddr != nil ) 595 { 596 o_source = [NSString stringWithFormat: @"%@://%@@:%i/%@", 597 o_protocol, o_addr, i_port, o_baddr]; 598 } 599 else 600 { 601 o_source = [NSString stringWithFormat: @"%@://%@@:%i", 602 o_protocol, o_addr, i_port]; 603 } 592 config_PutIntVariable( "network-channel", 0 ); 593 594 o_source = [NSString stringWithFormat: @"udpstream:@%@:%i", 595 o_addr, i_port]; 604 596 605 597 if ( p_intf->p_sys->b_loop ) … … 628 620 } 629 621 630 config_PutIntVariable( "network _channel", 1 );622 config_PutIntVariable( "network-channel", 1 ); 631 623 632 624 if( p_main->p_channel == NULL ) … … 635 627 } 636 628 637 config_PutPszVariable( "channel_server", (char*)[o_addr lossyCString] ); 638 config_PutIntVariable( "channel_port", i_port ); 629 config_PutPszVariable( "channel-server", (char*)[o_addr lossyCString] ); 630 config_PutIntVariable( "channel-port", i_port ); 631 } 632 633 - (void)openNetHTTP:(NSString*)o_addr 634 { 635 NSString *o_source; 636 int i_end = p_main->p_playlist->i_size; 637 intf_thread_t * p_intf = p_main->p_intf; 638 639 if( p_input_bank->pp_input[0] != NULL ) 640 { 641 p_input_bank->pp_input[0]->b_eof = 1; 642 } 643 644 config_PutIntVariable( "network-channel", 0 ); 645 646 if ( p_intf->p_sys->b_loop ) 647 { 648 intf_PlaylistDelete( p_main->p_playlist, 649 p_main->p_playlist->i_size - 1 ); 650 } 651 652 intf_PlaylistAdd( p_main->p_playlist, PLAYLIST_END, 653 [o_addr fileSystemRepresentation] ); 654 655 intf_PlaylistJumpto( p_main->p_playlist, i_end - 1 ); 656 657 if ( p_intf->p_sys->b_loop ) 658 { 659 intf_PlaylistAdd( p_main->p_playlist, PLAYLIST_END, 660 "vlc:loop" ); 661 } 639 662 } 640 663
