]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/controls.m
gui/macosx: Added menu item to set playback rate back to normal
[vlc] / modules / gui / macosx / controls.m
index eeb7a385133cbc943c2628c86765f7ef3f149d27..381131aef9974dce7368099de55218d7375af813 100644 (file)
     var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_SLOWER );
 }
 
+- (IBAction)normalSpeed:(id)sender
+{
+    intf_thread_t * p_intf = VLCIntf;
+    var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_RATE_NORMAL );
+}
+
 - (IBAction)prev:(id)sender
 {
     intf_thread_t * p_intf = VLCIntf;
     input_thread_t * p_input = playlist_CurrentInput( p_playlist );
 
     if( [[o_mi title] isEqualToString: _NS("Faster")] ||
-        [[o_mi title] isEqualToString: _NS("Slower")] )
+        [[o_mi title] isEqualToString: _NS("Slower")] ||
+        [[o_mi title] isEqualToString: _NS("Normal rate")] )
     {
         if( p_input != NULL )
         {