From eabcf8f10651a78c09e69398844ed2dec2989146 Mon Sep 17 00:00:00 2001 From: Luis de Bethencourt Date: Fri, 2 May 2014 17:25:07 -0400 Subject: [PATCH] gst-validate: some static variables can be local buffering is only used inside the bus_callback, so it can have that local scope. same thing with ret which is only used in the main function. --- validate/tools/gst-validate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validate/tools/gst-validate.c b/validate/tools/gst-validate.c index 5c335a73a5..2bbf8e4cc3 100644 --- a/validate/tools/gst-validate.c +++ b/validate/tools/gst-validate.c @@ -38,11 +38,9 @@ #include #endif -static gint ret = 0; static GMainLoop *mainloop; static GstElement *pipeline; -static gboolean buffering = FALSE; static gboolean is_live = FALSE; #ifdef G_OS_UNIX @@ -62,6 +60,7 @@ 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: @@ -264,6 +263,7 @@ main (int argc, gchar ** argv) gboolean list_scenarios = FALSE; GstStateChangeReturn sret; gchar *output_file = NULL; + gint ret = 0; #ifdef G_OS_UNIX guint signal_watch_id;