Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Leterax committed Dec 2, 2024
1 parent 629d9f9 commit c773328
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.DEBUG)


class VideoDecoder:
"""Handles video decoding using PyAV."""

Expand Down Expand Up @@ -235,8 +236,6 @@ def on_render(self, time: float, frametime: float) -> None:
# Get FPS values with safety checks
fps_avg = self.timer.fps_average if self.timer.time > 0 else 0.0



logger.debug(
"Movie Target FPS: %.1f | Window FPS: %.1f | Frame: %d/%d | Time: %.2f/%.2f | Frame Diff: %d | Paused: %s",
self.player.fps,
Expand All @@ -246,7 +245,7 @@ def on_render(self, time: float, frametime: float) -> None:
self.timer.time,
self.player.duration,
self.player.target_frame - self.player.current_frame,
self.player.is_paused
self.player.is_paused,
)
self._last_print_time = time

Expand Down

0 comments on commit c773328

Please sign in to comment.