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:
Zaggy1024 2025-09-11 18:32:23 -05:00 committed by Jelle Raaijmakers
commit 8d64e72655
Notes: github-actions[bot] 2025-09-12 09:25:18 +00:00
4 changed files with 7 additions and 5 deletions

View file

@ -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)