mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-03 10:43:55 +00:00
decklinksrc: Raise limit of devices to 16
https://bugzilla.gnome.org/show_bug.cgi?id=785694
This commit is contained in:
parent
d3920aa2a9
commit
a205338082
1 changed files with 4 additions and 2 deletions
|
@ -30,6 +30,8 @@
|
||||||
#include "gstdecklinkaudiosrc.h"
|
#include "gstdecklinkaudiosrc.h"
|
||||||
#include "gstdecklinkvideosrc.h"
|
#include "gstdecklinkvideosrc.h"
|
||||||
|
|
||||||
|
#define GST_DECKLINK_MAX_DEVICES 16
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_decklink_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_decklink_debug);
|
||||||
#define GST_CAT_DEFAULT gst_decklink_debug
|
#define GST_CAT_DEFAULT gst_decklink_debug
|
||||||
|
|
||||||
|
@ -1059,7 +1061,7 @@ gst_decklink_com_thread (gpointer data)
|
||||||
|
|
||||||
static GOnce devices_once = G_ONCE_INIT;
|
static GOnce devices_once = G_ONCE_INIT;
|
||||||
static int n_devices;
|
static int n_devices;
|
||||||
static Device devices[10];
|
static Device devices[GST_DECKLINK_MAX_DEVICES];
|
||||||
|
|
||||||
static gpointer
|
static gpointer
|
||||||
init_devices (gpointer data)
|
init_devices (gpointer data)
|
||||||
|
@ -1184,7 +1186,7 @@ init_devices (gpointer data)
|
||||||
ret = iterator->Next (&decklink);
|
ret = iterator->Next (&decklink);
|
||||||
i++;
|
i++;
|
||||||
|
|
||||||
if (i == 10) {
|
if (i == GST_DECKLINK_MAX_DEVICES) {
|
||||||
GST_WARNING ("this hardware has more then 10 devices");
|
GST_WARNING ("this hardware has more then 10 devices");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue