diff --git a/presets/all.jsonc b/presets/all.jsonc index 06a415963..ddbf89289 100644 --- a/presets/all.jsonc +++ b/presets/all.jsonc @@ -50,6 +50,7 @@ "users", "bluetooth", "sound", + "camera", "gamepad", "weather", "netio", diff --git a/src/detection/camera/camera_linux.c b/src/detection/camera/camera_linux.c index 99a2b85b6..227028258 100644 --- a/src/detection/camera/camera_linux.c +++ b/src/detection/camera/camera_linux.c @@ -33,8 +33,6 @@ const char* ffDetectCamera(FFlist* result) ffStrbufInitS(&camera->name, (const char*) cap.card); ffStrbufInit(&camera->vendor); ffStrbufInitS(&camera->id, (const char*) cap.bus_info); - camera->width = camera->height = 0; - camera->width = fmt.fmt.pix.width; camera->height = fmt.fmt.pix.height; }