mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
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:
parent
0b01b578ce
commit
eabcf8f106
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue