[vlc-commits] [Git][videolan/vlc][master] 2 commits: Qt: fix SET_TIME calls

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Fri Aug 26 08:21:32 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
bb7a2036 by Francois Cartegnie at 2022-08-26T07:27:05+00:00
Qt: fix SET_TIME calls

- - - - -
6b8ef562 by Francois Cartegnie at 2022-08-26T07:27:05+00:00
Qt: fix bogus relative SetTime

- - - - -


2 changed files:

- modules/gui/qt/dialogs/gototime/gototime.cpp
- modules/gui/qt/player/player_controller.cpp


Changes:

=====================================
modules/gui/qt/dialogs/gototime/gototime.cpp
=====================================
@@ -105,7 +105,7 @@ void GotoTimeDialog::close()
     if ( THEMIM->hasInput() )
     {
         int i_time = QTime( 0, 0, 0 ).msecsTo( timeEdit->time() );
-        THEMIM->jumpToTime( VLC_TICK_FROM_MS(i_time) );
+        THEMIM->setTime( VLC_TICK_FROM_MS(i_time) );
     }
     toggleVisible();
 }


=====================================
modules/gui/qt/player/player_controller.cpp
=====================================
@@ -1259,7 +1259,7 @@ void PlayerController::jumpToTime(VLCTick i_time)
     vlc_player_locker lock{ d->m_player };
     if( !isCurrentItemSynced() )
         return;
-    vlc_player_JumpTime( d->m_player, vlc_tick_from_sec( i_time ) );
+    vlc_player_JumpTime( d->m_player, i_time );
 }
 
 void PlayerController::jumpToPos( float new_pos )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/bec320b81a7f1d06c688d67a2dd45f0599573bcb...6b8ef562c447b0e9e4b24d55cfb8dc5952d5a84d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/bec320b81a7f1d06c688d67a2dd45f0599573bcb...6b8ef562c447b0e9e4b24d55cfb8dc5952d5a84d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list