Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/scope/server/frame_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,12 @@ def _update_output_sink(
if sink_class is None:
logger.error(f"Unknown output sink type: {sink_type}")
return
if not sink_class.is_available():
logger.warning(
"Output sink '%s' is not available on this platform, skipping",
sink_type,
)
return
try:
sink = sink_class()
if sink.create(sink_name, width, height):
Expand Down Expand Up @@ -825,8 +831,9 @@ def _create_and_connect_input_source(self, source_type: str, source_name: str):
return

if not source_class.is_available():
logger.error(
f"Input source '{source_type}' is not available on this platform"
logger.warning(
"Input source '%s' is not available on this platform, skipping",
source_type,
)
return

Expand Down
Loading