check: Don't re-declare 'GList *buffers' in the tests
authorEdward Hervey <bilboed@bilboed.com>
Mon, 12 Apr 2010 16:03:20 +0000 (18:03 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Mon, 12 Apr 2010 16:03:20 +0000 (18:03 +0200)
It's an external which lives in gstcheck.c. Redeclaring it makes some
compilers/architectures think the 'buffers' in the individual tests are
a different symbol... and therefore we end up comparing holodecks with
oranges.

tests/check/elements/cmmldec.c
tests/check/elements/cmmlenc.c
tests/check/elements/level.c
tests/check/elements/matroskamux.c
tests/check/elements/rganalysis.c
tests/check/elements/rglimiter.c
tests/check/elements/rgvolume.c
tests/check/elements/spectrum.c
tests/check/elements/videofilter.c

index a7d5848..1ba8fb4 100644 (file)
@@ -92,8 +92,6 @@ static GstBus *bus;
 
 static GstFlowReturn flow;
 
-GList *buffers;
-
 static GList *current_buf;
 
 static gint64 granulerate;
index eff1241..4424a72 100644 (file)
@@ -109,7 +109,6 @@ G_STMT_START {                                                          \
   g_free (b_up);                                                        \
 } G_STMT_END;
 
-GList *buffers;
 static GList *current_buf;
 static guint64 granulerate;
 static guint8 granuleshift;
index d1f744c..2bb4eb7 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <gst/check/gstcheck.h>
 
-GList *buffers = NULL;
 gboolean have_eos = FALSE;
 
 /* For ease of programming we use globals to keep refs for our floating
index efb0fb6..a05b2ca 100644 (file)
@@ -24,8 +24,6 @@
 
 #include <gst/check/gstcheck.h>
 
-GList *buffers = NULL;
-
 /* For ease of programming we use globals to keep refs for our floating
  * src and sink pads we create; otherwise we always have to do get_pad,
  * get_peer, and then remove references in every test function */
index 89ff92e..8c26cf3 100644 (file)
@@ -61,8 +61,6 @@
 
 #include <gst/check/gstcheck.h>
 
-GList *buffers = NULL;
-
 /* For ease of programming we use globals to keep refs for our floating src and
  * sink pads we create; otherwise we always have to do get_pad, get_peer, and
  * then remove references in every test function */
index 9765794..6b4b96a 100644 (file)
@@ -24,8 +24,6 @@
 
 #include <math.h>
 
-GList *buffers = NULL;
-
 /* For ease of programming we use globals to keep refs for our floating
  * src and sink pads we create; otherwise we always have to do get_pad,
  * get_peer, and then remove references in every test function */
index 28d4134..3add27a 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <math.h>
 
-GList *buffers = NULL;
 GList *events = NULL;
 
 /* For ease of programming we use globals to keep refs for our floating src and
index 2045c12..0eed1dc 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <gst/check/gstcheck.h>
 
-GList *buffers = NULL;
 gboolean have_eos = FALSE;
 
 /* For ease of programming we use globals to keep refs for our floating
index f7959ec..9771738 100644 (file)
@@ -25,7 +25,6 @@
 
 #include <gst/check/gstcheck.h>
 
-GList *buffers = NULL;
 gboolean have_eos = FALSE;
 
 /* For ease of programming we use globals to keep refs for our floating