GNOME Bugzilla – Bug 677544
PATCH: camera-device-monitor: Don't add NULL devices to the camera list
Last modified: 2019-12-17 08:35:34 UTC
Created attachment 215724 [details] [review] PATCH: camera-device-monitor: Don't add NULL devices to the camera list cheese_camera_device_monitor_set_up_device() will return NULL for non video devices (ie vbi & radio devices). Emitting the added signal with such a NULL device, causes it to get added to the camera list, which later on causes cheese to crash. This patch fixes this by not emitting the added signal for non camera devices. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Hi, Note this patch was made against 3.4.2, but it should apply fine to master too. Also please backport / cherry pick this patch into the 3.4 branch. Thanks, Hans
Comment on attachment 215724 [details] [review] PATCH: camera-device-monitor: Don't add NULL devices to the camera list Thanks! I pushed a patch with some added comments to gnome-3-4 and master as commits c832acfb1ba296815cb3d38070faedfb1349ebf4 and 60f9af8ff5f14e68588561320530937b1b3e57ed.
*** Bug 671201 has been marked as a duplicate of this bug. ***