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:
Thibault Saunier 2014-05-04 09:30:14 +02:00
parent eabcf8f106
commit 49ab41743b

View file

@ -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: