File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ target_sources(
8282 src/touch-control.hpp
8383)
8484
85- option (ENABLE_USB_CAM "Enable USB camera support" OFF )
85+ option (ENABLE_USB_CAM "Enable USB camera support" ON )
8686if (ENABLE_USB_CAM)
8787 add_compile_definitions (ENABLE_USB_CAM)
8888 target_sources (${CMAKE_PROJECT_NAME} PRIVATE src/ptz-usb-cam.cpp src/ptz-usb-cam.hpp)
Original file line number Diff line number Diff line change @@ -222,7 +222,9 @@ void PTZSettings::on_addPTZ_clicked()
222222#if defined(ENABLE_ONVIF) // ONVIF disabled until code is reworked
223223 QAction *addOnvif = addPTZContext.addAction (" ONVIF (experimental)" );
224224#endif
225+ #if defined(ENABLE_USB_CAM)
225226 QAction *addUsbCam = addPTZContext.addAction (" USB Camera (UVC)" );
227+ #endif
226228 QAction *action = addPTZContext.exec (QCursor::pos ());
227229
228230#if defined(ENABLE_SERIALPORT)
@@ -271,12 +273,14 @@ void PTZSettings::on_addPTZ_clicked()
271273 ptzDeviceList.make_device (cfg);
272274 }
273275#endif
276+ #if defined(ENABLE_USB_CAM)
274277 if (action == addUsbCam) {
275278 OBSData cfg = obs_data_create ();
276279 obs_data_release (cfg);
277280 obs_data_set_string (cfg, " type" , " usb-cam" );
278281 ptzDeviceList.make_device (cfg);
279282 }
283+ #endif
280284}
281285
282286void PTZSettings::on_removePTZ_clicked ()
You can’t perform that action at this time.
0 commit comments