GNOME Bugzilla – Bug 727925
v4l2: Share device enumeration
Last modified: 2014-05-04 10:16:56 UTC
Currently the device monitor and the video decoder has code to enumerate the video devices. This should be shared. What I'm proposing (I'll implement it) is to introduce v4l2-util.{c,h} and a trivial data structure GstV4l2Iterator. It will abstract Gudev enumeration so hopefully will reduce the ifdef mess around it.
Created attachment 275728 [details] [review] [PATCH] doc: Add GstDevice* to gstreamer-sections.tx docs/gst/gstreamer-sections.txt | 99 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+)
Still need to add the sections and annotation around the object structures.
Comment on attachment 275728 [details] [review] [PATCH] doc: Add GstDevice* to gstreamer-sections.tx Wrong bug
commit 717bbbbe701116af529091db2e1879db2da1d79e Author: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> Date: Fri May 2 22:42:54 2014 -0400 v4l2devicemonitor: Port to use GstV4l2Iterator https://bugzilla.gnome.org/show_bug.cgi?id=727925 commit aa74871080d93701523e8bc183b2a8432e9b61c5 Author: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> Date: Fri May 2 21:38:30 2014 -0400 v4l2: Use single pass iterator for M2M probe Instead of having each M2M class do their own probing, use the GstV4l2Iterator and probe all devices in a single pass. https://bugzilla.gnome.org/show_bug.cgi?id=727925 commit 726fc3b5249274d9a56dcd3c7dc45e48c52b912d Author: Nicolas Dufresne <nicolas.dufresne@collabora.com> Date: Fri May 2 16:55:05 2014 -0400 v4l2: Add a common device enumerator This will allow removing code duplication (hence bugs duplication). https://bugzilla.gnome.org/show_bug.cgi?id=727925 commit f7d34bd237be27490e50c2456f1967c9bef160fa Author: Nicolas Dufresne <nicolas.dufresne@collabora.com> Date: Sun Mar 16 11:38:07 2014 +0100 v4l2videodec: Simplify sub-instanciation mechanism Simplify sub-instanciation by defining an absract type and using subtype class and instance init callback. This also fixes a bug where the template pads get initialized too late. https://bugzilla.gnome.org/show_bug.cgi?id=727925 commit e06c9f7fce152260ebb2a097ae86e91e7c7a6298 Author: Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> Date: Fri May 2 18:18:26 2014 -0400 v4l2: Cleanup plugin registration There is no plan to introduce special sources for jpeg, te v4l2src works fine for this. https://bugzilla.gnome.org/show_bug.cgi?id=727925