[vlc-commits] hotkeys: the delay up/down are processed in mtime_t

Steve Lhomme git at videolan.org
Thu Jun 14 16:40:56 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jun 12 11:58:51 2018 +0200| [73e4a2e8883190230087562fbe9bb280d0423089] | committer: Steve Lhomme

hotkeys: the delay up/down are processed in mtime_t

And with 50ms inc/decrements

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

 modules/control/hotkeys.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index 54d904b6c8..92ee7c0960 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -712,7 +712,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
         case ACTIONID_SUBDELAY_DOWN:
         case ACTIONID_SUBDELAY_UP:
         {
-            int diff = (i_action == ACTIONID_SUBDELAY_UP) ? 50000 : -50000;
+            mtime_t diff = (i_action == ACTIONID_SUBDELAY_UP) ? 50000 : -50000;
             if( p_input )
             {
                 vlc_value_t val;
@@ -729,7 +729,7 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
                     free(list);
                     break;
                 }
-                int64_t i_delay = var_GetInteger( p_input, "spu-delay" ) + diff;
+                mtime_t i_delay = var_GetInteger( p_input, "spu-delay" ) + diff;
 
                 var_SetInteger( p_input, "spu-delay", i_delay );
                 ClearChannels( p_vout, slider_chan );
@@ -742,10 +742,10 @@ static int PutAction( intf_thread_t *p_intf, input_thread_t *p_input,
         case ACTIONID_AUDIODELAY_DOWN:
         case ACTIONID_AUDIODELAY_UP:
         {
-            int diff = (i_action == ACTIONID_AUDIODELAY_UP) ? 50000 : -50000;
+            mtime_t diff = (i_action == ACTIONID_SUBDELAY_UP) ? 50000 : -50000;
             if( p_input )
             {
-                int64_t i_delay = var_GetInteger( p_input, "audio-delay" )
+                mtime_t i_delay = var_GetInteger( p_input, "audio-delay" )
                                   + diff;
 
                 var_SetInteger( p_input, "audio-delay", i_delay );



More information about the vlc-commits mailing list