validate: The 'buffering' variable needs to be static
authorThibault Saunier <tsaunier@gnome.org>
Sun, 4 May 2014 07:30:14 +0000 (09:30 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Sun, 4 May 2014 07:30:16 +0000 (09:30 +0200)
We need its value between bus_callback calls to be the same

validate/tools/gst-validate.c

index 2bbf8e4cc33178da664fbbc56fc0b7c23d8ba795..13e9e33657b9e43c9807babdf2e7feee8009615e 100644 (file)
@@ -40,6 +40,7 @@
 
 static GMainLoop *mainloop;
 static GstElement *pipeline;
+static gboolean buffering = FALSE;
 
 static gboolean is_live = FALSE;
 
@@ -60,7 +61,6 @@ static gboolean
 bus_callback (GstBus * bus, GstMessage * message, gpointer data)
 {
   GMainLoop *loop = data;
-  gboolean buffering = FALSE;
 
   switch (GST_MESSAGE_TYPE (message)) {
     case GST_MESSAGE_ERROR: