-d device option not working
Version: current master (b1dcccca)
I have 2 video devices, one laptop integrated webcam /dev/video0 and an external usb (gspca) webcam /dev/video2.
If I run "cheese -d /dev/video2", cheese doesn't take the parameter into account and opens /dev/video0, showing the image recorded by the video0 laptop integrated webcam instead of the desired external usb2. Same happens if I pass a device which doesn't exist in my system, eg. /dev/video456789.
Expected behavior in this case would be: 1- If /dev/video2 exists, /dev/video2 should be opened instead of /dev/video0 and shown in the GUI. 2- If /dev/video2 doesn't exist, cheese should close quickly with an error, stating that /dev/video2 device could not be found. At least it should not by any means attempt to open a device different than the one specified in cmd line.
Not causing the issue but somehow related information: For some reason, I can use the gspca external usb webcam (/dev/video2) with VLC, but it doesn't seem to be detected correctly by Gstreamer (which cheese uses), so cheese preferences window doesn't show this webcam in the webcam list.
Further debugging shows that gst_device_monitor_get_devices() returns /dev/video0 but never returns /dev/video2, but that's another issue and it's related to gstreamer, not to cheese.