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.
This commit is contained in:
Luis de Bethencourt 2014-05-02 17:25:07 -04:00
parent 0b01b578ce
commit eabcf8f106

View file

@ -38,11 +38,9 @@
#include <glib-unix.h>
#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;