Bug 422847 - kamoso ignore cameras when not probed by udev
Summary: kamoso ignore cameras when not probed by udev
Status: RESOLVED FIXED
Alias: None
Product: kamoso
Classification: Applications
Component: general (show other bugs)
Version: 20.04
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-11 21:37 UTC by Elia Devito
Modified: 2020-06-14 03:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 20.08.0


Attachments
gst-device-monitor-1.0 Video/Source output (2.55 KB, text/plain)
2020-06-11 21:37 UTC, Elia Devito
Details

Note You need to log in before you can comment on or make changes to this bug.
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!