From 57160c2be721b9f54c6efe9b3f7a9c8438229c8d Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Fri, 21 Dec 2012 07:35:13 -0500 Subject: [PATCH] decklink: remove useless and uninitialized list causing a crash in the device probe --- sys/decklink/gstdecklinksink.cpp | 3 --- sys/decklink/gstdecklinksrc.cpp | 3 --- 2 files changed, 6 deletions(-) diff --git a/sys/decklink/gstdecklinksink.cpp b/sys/decklink/gstdecklinksink.cpp index 7ee661e..46a71a6 100644 --- a/sys/decklink/gstdecklinksink.cpp +++ b/sys/decklink/gstdecklinksink.cpp @@ -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); diff --git a/sys/decklink/gstdecklinksrc.cpp b/sys/decklink/gstdecklinksrc.cpp index 331ca72..c3ec84b 100644 --- a/sys/decklink/gstdecklinksrc.cpp +++ b/sys/decklink/gstdecklinksrc.cpp @@ -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); -- 2.7.4