Commit 103019a8 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* OSX compiles again (BEWARE it is still SEVERELY broken)

parent eb3c7096
......@@ -334,7 +334,7 @@
[o_volumeslider setFloatValue: (float)(i_volume / AOUT_VOLUME_STEP)];
vout_OSDMessage( p_intf, DEFAULT_CHAN, "Vol %d%%",
i_volume*100/AOUT_VOLUME_MAX );
i_volume*200/AOUT_VOLUME_MAX );
}
- (IBAction)windowAction:(id)sender
......@@ -620,9 +620,7 @@
{
if( p_playlist != NULL && p_input != NULL )
{
vlc_mutex_lock( &p_input->stream.stream_lock );
bEnabled = p_input->stream.b_pace_control;
vlc_mutex_unlock( &p_input->stream.stream_lock );
bEnabled = p_input->input.b_can_pace_control;
}
else
{
......@@ -646,13 +644,6 @@
else
{
bEnabled = p_playlist->i_size > 1;
if( p_input != NULL )
{
vlc_mutex_lock( &p_input->stream.stream_lock );
bEnabled |= p_input->stream.i_area_nb > 1;
vlc_mutex_unlock( &p_input->stream.stream_lock );
}
}
}
else if( [[o_mi title] isEqualToString: _NS("Random")] )
......@@ -681,9 +672,7 @@
{
if( p_playlist != NULL && p_input != NULL )
{
vlc_mutex_lock( &p_input->stream.stream_lock );
bEnabled = p_input->stream.b_seekable;
vlc_mutex_unlock( &p_input->stream.stream_lock );
bEnabled = TRUE; /* FIXME p_input seekable */
}
else
{
......
......@@ -728,14 +728,10 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
vlc_value_t val;
/* New input or stream map change */
if( p_input->stream.b_changed )
{
msg_Dbg( p_intf, "stream has changed, refreshing interface" );
p_intf->p_sys->b_playing = TRUE;
p_intf->p_sys->b_current_title_update = 1;
p_input->stream.b_changed = 0;
p_intf->p_sys->b_intf_update = TRUE;
}
if( var_Get( (vlc_object_t *)p_input, "intf-change", &val )
>= 0 && val.b_bool )
......@@ -845,18 +841,14 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
if( ( b_input = ( p_input != NULL ) ) )
{
vlc_mutex_lock( &p_input->stream.stream_lock );
/* seekable streams */
b_seekable = p_input->stream.b_seekable;
b_seekable = (BOOL)f_slider_old;
/* check wether slow/fast motion is possible*/
b_control = p_input->stream.b_pace_control;
b_control = p_input->input.b_can_pace_control;
/* chapters & titles */
b_chapters = p_input->stream.i_area_nb > 1;
vlc_mutex_unlock( &p_input->stream.stream_lock );
//b_chapters = p_input->stream.i_area_nb > 1;
}
[o_btn_stop setEnabled: b_input];
......@@ -899,7 +891,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
NSString * o_time;
mtime_t i_seconds;
if( p_input->stream.b_seekable )
if( (BOOL)f_slider_old )
{
vlc_value_t pos;
float f_updated;
......@@ -1177,7 +1169,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
mtime_t i_seconds;
NSString * o_time;
if( p_input->stream.b_seekable )
if( (BOOL)f_slider_old )
{
vlc_value_t pos;
pos.f_float = f_updated / 10000.;
......@@ -1216,7 +1208,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
}
/* FIXME - Wait here until all vouts are terminated because
libvlc's VLC_Stop destroys interfaces before vouts, which isn't
libvlc's VLC_CleanUp destroys interfaces before vouts, which isn't
good on OS X. We definitly need a cleaner way to handle this,
but this may hopefully be good enough for now.
-- titer 2003/11/22 */
......@@ -1265,8 +1257,8 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
o_msg_lock = nil;
}
[NSApp terminate: nil];
[NSApp stop: nil];
[NSApp terminate: nil];
/* write cached user defaults to disk */
[[NSUserDefaults standardUserDefaults] synchronize];
......
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