mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
validate: The 'buffering' variable needs to be static
We need its value between bus_callback calls to be the same
This commit is contained in:
parent
eabcf8f106
commit
49ab41743b
1 changed files with 1 additions and 1 deletions
|
@ -40,6 +40,7 @@
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
@ -60,7 +61,6 @@ 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:
|
||||||
|
|
Loading…
Reference in a new issue