Skip to content

Commit 037c03f

Browse files
committed
fix: datachannel control camera options only valid with libcamera
1 parent ecff8a2 commit 037c03f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/rtc/conductor.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ void Conductor::OnCameraOption(std::shared_ptr<DataChannelSubject> datachannel,
239239
DEBUG_PRINT("parse meta cmd message => %d, %d", key, value);
240240

241241
try {
242+
if (!args.use_libcamera) {
243+
throw std::runtime_error("Setting camera options only valid with libcamera.");
244+
}
242245
video_capture_source_->SetControls(key, value);
243246
} catch (const std::exception &e) {
244247
ERROR_PRINT("%s", e.what());

0 commit comments

Comments
 (0)