mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
decklink: remove useless and uninitialized list causing a crash in the device probe
This commit is contained in:
parent
079f5e83ea
commit
57160c2be7
2 changed files with 0 additions and 6 deletions
|
@ -1271,7 +1271,6 @@ gst_decklink_sink_class_list_devices (GstElementClass * klass)
|
|||
GValueArray *array;
|
||||
GValue value = {
|
||||
0};
|
||||
GList *item;
|
||||
int i;
|
||||
|
||||
array = g_value_array_new (n_devices);
|
||||
|
@ -1279,8 +1278,6 @@ gst_decklink_sink_class_list_devices (GstElementClass * klass)
|
|||
for (i = 0; i < n_devices; i++) {
|
||||
g_value_set_int (&value, i);
|
||||
g_value_array_append (array, &value);
|
||||
|
||||
item = item->next;
|
||||
}
|
||||
g_value_unset (&value);
|
||||
|
||||
|
|
|
@ -1468,7 +1468,6 @@ gst_decklinksrc_class_list_devices (GstElementClass * klass)
|
|||
{
|
||||
GValueArray *array;
|
||||
GValue value = { 0 };
|
||||
GList *item;
|
||||
int i;
|
||||
|
||||
array = g_value_array_new (n_devices);
|
||||
|
@ -1476,8 +1475,6 @@ gst_decklinksrc_class_list_devices (GstElementClass * klass)
|
|||
for (i = 0; i < n_devices; i++) {
|
||||
g_value_set_int (&value, i);
|
||||
g_value_array_append (array, &value);
|
||||
|
||||
item = item->next;
|
||||
}
|
||||
g_value_unset (&value);
|
||||
|
||||
|
|
Loading…
Reference in a new issue