Comment 31 for bug 917757

Revision history for this message
In , Hans de Goede (j-w-r-degoede) wrote :

Created attachment 215724
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 <email address hidden>

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