Skip to content

Commit

Permalink
fix: set video aspect & scale on video load
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhd1701 committed Jul 2, 2022
1 parent 6a561b2 commit d80bec3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gridplayer/widgets/video_frame_vlc_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ def time_changed_emit(self, new_time) -> None:
self.time_changed.emit(new_time)

def load_video(self, media_input: MediaInput) -> None:
self._aspect = media_input.video.aspect_mode
self._scale = media_input.video.scale

self.video_driver.load_video(media_input)

def load_video_finish(self, media_track: MediaTrack) -> None:
Expand Down

0 comments on commit d80bec3

Please sign in to comment.