mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-20 15:09:42 +00:00
LibMedia: Remove the duration field from Track::VideoData
Most demuxer users will only care about the whole file's duration anyway, so this field doesn't really do us any good.
This commit is contained in:
parent
db5fd614ac
commit
8d64e72655
Notes:
github-actions[bot]
2025-09-12 09:25:18 +00:00
Author: https://github.com/Zaggy1024
Commit: 8d64e72655
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6165
Reviewed-by: https://github.com/gmta ✅
4 changed files with 7 additions and 5 deletions
|
@ -110,7 +110,7 @@ AK::Duration VideoTrack::position() const
|
|||
|
||||
AK::Duration VideoTrack::duration() const
|
||||
{
|
||||
return m_playback_manager->selected_video_track().video_data().duration;
|
||||
return m_playback_manager->duration();
|
||||
}
|
||||
|
||||
void VideoTrack::seek(AK::Duration position, MediaSeekMode seek_mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue