[vlc-commits] macosx: fixed time slider action in the fspanel

Felix Paul Kühne git at videolan.org
Thu Aug 4 12:02:00 CEST 2011


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Aug  4 12:01:55 2011 +0200| [91d41ce2610acddd5ba53eb14c8a3230c79aa0aa] | committer: Felix Paul Kühne

macosx: fixed time slider action in the fspanel

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=91d41ce2610acddd5ba53eb14c8a3230c79aa0aa
---

 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 6a3748d..92505b7 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 efe83b1..4e3f72e 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;



More information about the vlc-commits mailing list