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 671690 - decklinksrc: Add property probing, return the number of devices
decklinksrc: Add property probing, return the number of devices
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
0.10.x
Other Linux
: Normal enhancement
: 0.10.24
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-09 00:26 UTC by Ralph Giles
Modified: 2012-03-17 21:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
David's sketch of the patch (5.47 KB, application/octet-stream)
2012-03-09 00:26 UTC, Ralph Giles
Details
updated version of the patch (10.16 KB, application/octet-stream)
2012-03-09 00:36 UTC, Ralph Giles
Details

Description Ralph Giles 2012-03-09 00:26:51 UTC
Created attachment 209290 [details]
David's sketch of the patch

David Schleef wrote a patch adding property probing to decklinksrc. It returns the number of devices available on the system, which is helpful both for using multiple capture cards, and for detecting whether it's useful to add the element to a pipeline.
Comment 1 Ralph Giles 2012-03-09 00:36:43 UTC
Created attachment 209291 [details]
updated version of the patch

Updated version of the patch.

This one fixes various problems with the sketch and works on my one-card system.

I also took the liberty of renaming 'subdevice' to 'device'. Shorter pipelines are better!
Comment 2 David Schleef 2012-03-17 21:01:32 UTC
Yeah, I'm going to go with device.  The decklink SDK doesn't differentiate between devices and subdevices, and calls them all "devices".
Comment 3 David Schleef 2012-03-17 21:32:14 UTC
commit 7cd0ac046ab13bd839ad108e82922a7a92fbd263
Author: David Schleef <ds@schleef.org>
Date:   Wed Mar 7 19:22:28 2012 -0800

    decklink: Add property probing
    
    Renames the subdevice property to just device, and has it
    return the number of devices in the system in response to
    a probe. This is useful both for using multiple capture
    cards, and for detecting whether it's worth adding the
    element to a pipeline.
    
    Also cleans up the property descriptions.