After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 727925 - v4l2: Share device enumeration
v4l2: Share device enumeration
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Linux
: Normal enhancement
: 1.3.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-04-09 22:57 UTC by Nicolas Dufresne (ndufresne)
Modified: 2014-05-04 10:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] doc: Add GstDevice* to gstreamer-sections.tx (3.25 KB, patch)
2014-05-03 02:22 UTC, Nicolas Dufresne (ndufresne)
none Details | Review

Description Nicolas Dufresne (ndufresne) 2014-04-09 22:57:43 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.
Comment 1 Nicolas Dufresne (ndufresne) 2014-05-03 02:22:57 UTC
Created attachment 275728 [details] [review]
[PATCH] doc: Add GstDevice* to gstreamer-sections.tx

 docs/gst/gstreamer-sections.txt | 99 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 99 insertions(+)
Comment 2 Nicolas Dufresne (ndufresne) 2014-05-03 02:23:46 UTC
Still need to add the sections and annotation around the object structures.
Comment 3 Nicolas Dufresne (ndufresne) 2014-05-03 02:45:02 UTC
Comment on attachment 275728 [details] [review]
[PATCH] doc: Add GstDevice* to gstreamer-sections.tx

Wrong bug
Comment 4 Nicolas Dufresne (ndufresne) 2014-05-04 03:13:37 UTC
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