/*****************************************************************************
- * open.m: MacOS X plugin for vlc
+ * open.m: MacOS X module for vlc
*****************************************************************************
* Copyright (C) 2002-2003 VideoLAN
- * $Id: open.m,v 1.40 2003/10/31 15:54:53 hartman Exp $
+ * $Id$
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr>
- (void)awakeFromNib
{
- intf_thread_t * p_intf = [NSApp getIntf];
+ intf_thread_t * p_intf = VLCIntf;
[o_panel setTitle: _NS("Open Source")];
[o_mrl_lbl setTitle: _NS("Media Resource Locator (MRL)")];
}
if( [o_output_ckbox state] == NSOnState )
{
- [o_options addObject: [NSString stringWithFormat: @"sout=%@", [(VLCOutput *)o_sout_options getMRL]]];
+ [o_options addObject: [NSString stringWithString: [(VLCOutput *)o_sout_options getMRL]]];
}
[o_dic setObject: (NSArray *)[o_options copy] forKey: @"ITEM_OPTIONS"];
[o_playlist appendArray: [NSArray arrayWithObject: o_dic] atPos: -1 enqueue:NO];
[NSString stringWithFormat: _NS("No %@s found"), o_type]] )
o_device = @"";
if ( b_menus )
- o_mrl_string = [NSString stringWithFormat: @"dvdplay://%@",
+ o_mrl_string = [NSString stringWithFormat: @"dvdnav://%@",
o_device];
else
- o_mrl_string = [NSString stringWithFormat: @"dvdold://%@@%i,%i",
+ o_mrl_string = [NSString stringWithFormat: @"dvdread://%@@%i,%i",
o_device, i_title, i_chapter];
}
else /* VIDEO_TS folder */
{
if ( b_menus )
- o_mrl_string = [NSString stringWithFormat: @"dvdplay://%@",
+ o_mrl_string = [NSString stringWithFormat: @"dvdnav://%@",
o_videots];
else
o_mrl_string = [NSString stringWithFormat: @"dvdread://%@@%i,%i",
{
NSString *o_mode;
NSString *o_mrl_string = [NSString string];
- intf_thread_t * p_intf = [NSApp getIntf];
+ intf_thread_t * p_intf = VLCIntf;
o_mode = [[o_net_mode selectedCell] title];