mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-27 00:16:37 +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>
|
#include <glib-unix.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static gint ret = 0;
|
|
||||||
static GMainLoop *mainloop;
|
static GMainLoop *mainloop;
|
||||||
static GstElement *pipeline;
|
static GstElement *pipeline;
|
||||||
|
|
||||||
static gboolean buffering = FALSE;
|
|
||||||
static gboolean is_live = FALSE;
|
static gboolean is_live = FALSE;
|
||||||
|
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
|
@ -62,6 +60,7 @@ static gboolean
|
||||||
bus_callback (GstBus * bus, GstMessage * message, gpointer data)
|
bus_callback (GstBus * bus, GstMessage * message, gpointer data)
|
||||||
{
|
{
|
||||||
GMainLoop *loop = data;
|
GMainLoop *loop = data;
|
||||||
|
gboolean buffering = FALSE;
|
||||||
|
|
||||||
switch (GST_MESSAGE_TYPE (message)) {
|
switch (GST_MESSAGE_TYPE (message)) {
|
||||||
case GST_MESSAGE_ERROR:
|
case GST_MESSAGE_ERROR:
|
||||||
|
@ -264,6 +263,7 @@ main (int argc, gchar ** argv)
|
||||||
gboolean list_scenarios = FALSE;
|
gboolean list_scenarios = FALSE;
|
||||||
GstStateChangeReturn sret;
|
GstStateChangeReturn sret;
|
||||||
gchar *output_file = NULL;
|
gchar *output_file = NULL;
|
||||||
|
gint ret = 0;
|
||||||
|
|
||||||
#ifdef G_OS_UNIX
|
#ifdef G_OS_UNIX
|
||||||
guint signal_watch_id;
|
guint signal_watch_id;
|
||||||
|
|
Loading…
Reference in a new issue