From 49ab41743be08435f08ef775d3ecb2349b72ba2b Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Sun, 4 May 2014 09:30:14 +0200 Subject: [PATCH] validate: The 'buffering' variable needs to be static We need its value between bus_callback calls to be the same --- validate/tools/gst-validate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/tools/gst-validate.c b/validate/tools/gst-validate.c index 2bbf8e4cc3..13e9e33657 100644 --- a/validate/tools/gst-validate.c +++ b/validate/tools/gst-validate.c @@ -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: