From 91d41ce2610acddd5ba53eb14c8a3230c79aa0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Paul=20Ku=CC=88hne?= <fkuehne@videolan.org> Date: Thu, 4 Aug 2011 12:01:55 +0200 Subject: [PATCH] macosx: fixed time slider action in the fspanel --- modules/gui/macosx/fspanel.m | 13 +++++++++++-- modules/gui/macosx/intf.h | 3 --- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/gui/macosx/fspanel.m b/modules/gui/macosx/fspanel.m index 6a3748d036df..92505b79e64f 100644 --- a/modules/gui/macosx/fspanel.m +++ b/modules/gui/macosx/fspanel.m @@ -30,7 +30,6 @@ #import "vout.h" #import "misc.h" #import "fspanel.h" -#import "MainWindow.h" @interface VLCFSPanel () - (void)hideMouse; @@ -555,7 +554,17 @@ - (IBAction)fsTimeSliderUpdate:(id)sender { - [[VLCMainWindow sharedInstance] updateTimeSlider]; + input_thread_t * p_input; + p_input = pl_CurrentInput( VLCIntf ); + if( p_input != NULL ) + { + vlc_value_t pos; + + pos.f_float = [o_fs_timeSlider floatValue] / 10000.; + var_Set( p_input, "position", pos ); + vlc_object_release( p_input ); + } + [[VLCMain sharedInstance] updatePlaybackPosition]; } - (IBAction)fsVolumeSliderUpdate:(id)sender diff --git a/modules/gui/macosx/intf.h b/modules/gui/macosx/intf.h index efe83b1bc8ca..4e3f72eeb557 100644 --- a/modules/gui/macosx/intf.h +++ b/modules/gui/macosx/intf.h @@ -130,9 +130,6 @@ struct intf_sys_t IBOutlet NSWindow * o_crashrep_win; IBOutlet NSButton * o_crashrep_includeEmail_ckb; IBOutlet NSTextField * o_crashrep_includeEmail_txt; - - input_state_e cachedInputState; - NSURLConnection * crashLogURLConnection; AppleRemote * o_remote; -- GitLab