Commit 870f69a3 authored by Christophe Massiot's avatar Christophe Massiot

Mac OS X interface :

* fixed a bug in the chapter handling ;
* more keystrokes ;
parent 32d904e2
......@@ -2,7 +2,7 @@
* intf_vlc_wrapper.c: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: intf_vlc_wrapper.m,v 1.6.2.1 2002/06/01 11:38:07 sam Exp $
* $Id: intf_vlc_wrapper.m,v 1.6.2.2 2002/06/01 23:41:41 massiot Exp $
*
* Authors: Florian G. Pflug <fgp@phlo.org>
* Jon Lech Johansen <jon-vl@nanocrew.net>
......@@ -811,7 +811,7 @@ static Intf_VLCWrapper *o_intf = nil;
o_item = [o_chapter addItemWithTitle: o_menu_title
action: pf_toggle_chapter keyEquivalent: @""];
[o_item setTag: i];
[o_item setTag: i + 1];
[o_item setTarget: self];
if( ( p_input->stream.p_selected_area->i_part == i + 1 ) )
{
......@@ -873,9 +873,10 @@ static Intf_VLCWrapper *o_intf = nil;
}
o_item = [o_language addItemWithTitle: o_menu_title
action: pf_toggle_language keyEquivalent: @""];
action: pf_toggle_language keyEquivalent: @""];
[o_item setTag: i];
[o_item setTarget: self];
[o_item setEnabled: 1];
if( p_es->p_decoder_fifo != NULL )
{
[o_item setState: 1];
......@@ -901,9 +902,10 @@ static Intf_VLCWrapper *o_intf = nil;
}
o_item = [o_subtitle addItemWithTitle: o_menu_title
action: pf_toggle_subtitle keyEquivalent: @""];
action: pf_toggle_subtitle keyEquivalent: @""];
[o_item setTag: i];
[o_item setTarget: self];
[o_item setEnabled: 1];
if( p_es->p_decoder_fifo != NULL )
{
[o_item setState: 1];
......
......@@ -2,7 +2,7 @@
* vout_vlc_wrapper.c: MacOS X plugin for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: vout_vlc_wrapper.m,v 1.2 2002/05/18 18:48:24 massiot Exp $
* $Id: vout_vlc_wrapper.m,v 1.2.2.1 2002/06/01 23:41:41 massiot Exp $
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
*
......@@ -34,6 +34,10 @@
#include "video_output.h"
#include "interface.h"
#include "intf_playlist.h"
#include "stream_control.h"
#include "input_ext-intf.h"
#include "macosx.h"
#include "vout_vlc_wrapper.h"
......@@ -116,10 +120,28 @@ static Vout_VLCWrapper *o_vout = nil;
p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;
break;
case (unichar)0x1b: /* escape */
if ( p_vout->b_fullscreen )
{
p_vout->i_changes |= VOUT_FULLSCREEN_CHANGE;
}
break;
case 'q': case 'Q':
p_main->p_intf->b_die = 1;
break;
case ' ':
if ( p_input_bank->pp_input[0] != NULL )
{
input_SetStatus( p_input_bank->pp_input[0], INPUT_STATUS_PAUSE );
vlc_mutex_lock( &p_main->p_playlist->change_lock );
p_main->p_playlist->b_stopped = 0;
vlc_mutex_unlock( &p_main->p_playlist->change_lock );
}
break;
default:
return( NO );
break;
......
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