decklink: remove useless and uninitialized list causing a crash in the device probe

This commit is contained in:
Youness Alaoui 2012-12-21 07:35:13 -05:00 committed by Olivier Crête
parent 079f5e83ea
commit 57160c2be7
2 changed files with 0 additions and 6 deletions

View file

@ -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);

View file

@ -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);