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 777239 - decklink: elements are limited to a maximum of 16 devices
decklink: elements are limited to a maximum of 16 devices
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal blocker
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-13 22:19 UTC by Reza Razavi
Modified: 2018-02-14 15:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This patch raises the maximum number of supported devices from 10 to 48 (907 bytes, patch)
2017-01-13 22:22 UTC, Reza Razavi
needs-work Details | Review
decklink: don't limit number of devices to 16 (7.65 KB, patch)
2018-01-23 10:31 UTC, Tim-Philipp Müller
committed Details | Review
decklink: Fix array of devices usage (6.52 KB, patch)
2018-02-14 15:00 UTC, Edward Hervey
none Details | Review

Description Reza Razavi 2017-01-13 22:19:18 UTC
In the element Maximum number of decklink supported devices is hardcoded to just 10 devices. We had a conversation with Black Magic and according to them there is no fixed limitation for that (so there should be no limit on their side). Many PC motherboards now are able support 6 decklink cards each with up to 8 inputs so we made this patch to raise this limit to 48 and tested it with one of our systems. Hopefully we can raise this limit in upstream release so everyone can use it.
Comment 1 Reza Razavi 2017-01-13 22:22:36 UTC
Created attachment 343457 [details] [review]
This patch raises the maximum number of supported devices from 10 to 48
Comment 2 Sebastian Dröge (slomo) 2017-01-14 12:24:06 UTC
Comment on attachment 343457 [details] [review]
This patch raises the maximum number of supported devices from 10 to 48

I'd rather make it unlimited and instead of using a static sized array of Devices, just use a (dynamically growing) GArray. Then we won't ever have to increase the limit again in the future
Comment 3 Sebastian Dröge (slomo) 2017-01-24 17:03:35 UTC
Reza, do you want to update the patch accordingly?
Comment 4 Tim-Philipp Müller 2018-01-23 10:31:00 UTC
Created attachment 367289 [details] [review]
decklink: don't limit number of devices to 16
Comment 5 Tim-Philipp Müller 2018-01-23 10:35:51 UTC
(Patch was not tested with actual hardware fwiw, but it compiles!)
Comment 6 Tim-Philipp Müller 2018-01-23 14:15:51 UTC
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Tue Jan 23 10:27:57 2018 +0000

    decklink: don't limit number of devices to 16
    
    There is no fixed limitation for the number of devices on the
    decklink API side according to BlackMagic. Many PC motherboards
    are able support 6 decklink cards each with up to 8 inputs so
    a limit of 16 might well be too low.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777239
Comment 7 Edward Hervey 2018-02-14 14:15:38 UTC
Reopening, this causes segfaults on video sources ...
Comment 8 Tim-Philipp Müller 2018-02-14 14:36:06 UTC
Do you have a stack trace? There was a follow-up fix as well fwiw.
Comment 9 Tim-Philipp Müller 2018-02-14 14:36:37 UTC
commit 2a40ab6ad660c37b22e82991696d0c40e70da79b
Author: Tim-Philipp Müller <tim@centricular.com>
Date:   Tue Jan 23 14:49:51 2018 +0000

    decklink: don't crash if there are no decklink devices
    
    Fixes generic/states check.
Comment 10 Edward Hervey 2018-02-14 15:00:38 UTC
Created attachment 368345 [details] [review]
decklink: Fix array of devices usage

We need to allocate actual Device structures since we are going
to be setting callbacks with address to that structure
Comment 11 Edward Hervey 2018-02-14 15:10:51 UTC
commit b3ca3e977cefa7921e777f1b45054c3326598e2b (HEAD -> master, origin/master, origin/HEAD)
Author: Edward Hervey <edward@centricular.com>
Date:   Wed Feb 14 15:57:48 2018 +0100

    decklink: Fix array of devices usage
    
    We need to allocate actual Device structures since we are going
    to be setting callbacks with address to that structure
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777239