Skip to content

Commit

Permalink
Discard changes to src/utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Oct 20, 2024
1 parent 2799922 commit 52050c7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import win32gui
import win32ui
from pygrabber.dshow_graph import FilterGraph
from winrt.windows.ai.machinelearning import LearningModelDevice, LearningModelDeviceKind
from winrt.windows.media.capture import MediaCapture

Expand Down Expand Up @@ -160,10 +161,6 @@ def get_window_bounds(hwnd: int) -> tuple[int, int, int, int]:
def get_input_device_resolution(index: int) -> tuple[int, int] | None:
if sys.platform != "win32":
return (0, 0)

# https://github.com/enthought/comtypes/issues/618
from pygrabber.dshow_graph import FilterGraph # noqa: PLC0415

filter_graph = FilterGraph()
try:
filter_graph.add_video_input_device(index)
Expand Down

0 comments on commit 52050c7

Please sign in to comment.