Commits on Source (5)
-
Reverts commit c86e464f and bf5b6d59 Add the input_GetItemDuration function, which calculates the duration of a track item based on the start and stop times stored in the input thread's private data. If the stop time is not set, the function considers the provided duration as the stop time; otherwise, it calculates the duration using the start and stop times. Call input_GetItemDuration for retrieving the updated duration of the current track item. The calculated duration is then used to set the player's length accurately.
20ca1dd6 -
This data member `start_offset` will be used in the next commit to store the start time(which will act as as offset) of the current track so that the current timestamp is adjusted accordingly.
05c91910 -
Update the callers of `vlc_player_UpdateTimer()` to pass an additional `start_offset` argument, representing the start time of the current input item (acting as an offset). Modify the `vlc_player_UpdateTimer()` function to store this start timing in the player timer, ensuring accurate tracking of the playback start position. This change helps maintain correct timing information, particularly when dealing with segmented tracks or CUE files, by ensuring the player's timer aligns with the actual start time of the input.
0cc2d8be -
Calculate the updated position by adding offset according to the current track duration.
d1431101 -
Add an offset of `priv->i_start` during the seek by time operation to correctly account for the start time of individual segmented tracks. Modify the initial value passed to `input_SetTime()` to 0, as the start offset (`priv->i_start`) has already been considered. These changes ensure accurate timing and seek behavior in media files containing segmented tracks, such as those defined by CUE files, by aligning the seek position with the actual timing of individual segments.
cc638083
Showing
- src/input/input.c 19 additions, 8 deletionssrc/input/input.c
- src/input/input_internal.h 11 additions, 6 deletionssrc/input/input_internal.h
- src/input/parse.c 4 additions, 1 deletionsrc/input/parse.c
- src/player/input.c 7 additions, 5 deletionssrc/player/input.c
- src/player/player.h 3 additions, 1 deletionsrc/player/player.h
- src/player/timer.c 7 additions, 3 deletionssrc/player/timer.c