Bug 422847

Summary: kamoso ignore cameras when not probed by udev
Product: [Applications] kamoso Reporter: Elia Devito <eliadevito>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: eliadevito, nate
Priority: NOR    
Version: 20.04   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 20.08.0
Attachments: gst-device-monitor-1.0 Video/Source output

Description Elia Devito 2020-06-11 21:37:54 UTC
Created attachment 129246 [details]
gst-device-monitor-1.0 Video/Source output

SUMMARY
kamoso recognize my camera but ignore it

STEPS TO REPRODUCE
1. Open kamoso

OBSERVED RESULT
black screen, no cameras inside options 

EXPECTED RESULT
camera works

SOFTWARE/OS VERSIONS
Operating System: Fedora 32
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.13.2
Kernel Version: 5.6.15-300.fc32.x86_64
OS Type: 64-bit
Processors: 12 × Intel® Core™ i7-8750H CPU @ 2.20GHz
Memory: 15,2 GiB

ADDITIONAL INFORMATION
after some investigations I noted that m_uid variable in device.c not populated and consequently my cam is ignored by isValid() method, if I populate m_uid variable with any value the cam is not ignored and it works well.

I noted also that "gst-device-monitor-1.0 Video/Source" output return udev-probed = false

Inside gstreamer sources (https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/blob/master/sys/v4l2/ gstv4l2deviceprovider.c) you can see that sysfs.path is set only for udev probed device (row 249) but not in other case (row 122+)
Comment 1 Elia Devito 2020-06-12 10:48:59 UTC
I maked a merge request with a potential fix for this

https://invent.kde.org/multimedia/kamoso/-/merge_requests/4
Comment 2 Nate Graham 2020-06-14 03:06:06 UTC
Fixed with that MR, thanks!