GNOME Bugzilla – Bug 671690
decklinksrc: Add property probing, return the number of devices
Last modified: 2012-03-17 21:32:14 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.
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!
Yeah, I'm going to go with device. The decklink SDK doesn't differentiate between devices and subdevices, and calls them all "devices".
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.