mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst-launch: Fixes error when DISABLE_FAULT_HANDLER is defined
When defined, this macro prevented the declaration of 'waiting_eos', causing an error.
This commit is contained in:
parent
ca662eb57a
commit
37fe4bf3b9
1 changed files with 2 additions and 1 deletions
|
@ -54,7 +54,6 @@ static void fault_restore (void);
|
|||
static void fault_spin (void);
|
||||
static void sigint_restore (void);
|
||||
static gboolean caught_intr = FALSE;
|
||||
static gboolean waiting_eos = FALSE;
|
||||
#endif
|
||||
|
||||
/* event_loop return codes */
|
||||
|
@ -71,6 +70,7 @@ static gboolean quiet = FALSE;
|
|||
static gboolean tags = FALSE;
|
||||
static gboolean messages = FALSE;
|
||||
static gboolean is_live = FALSE;
|
||||
static gboolean waiting_eos = FALSE;
|
||||
|
||||
/* convenience macro so we don't have to litter the code with if(!quiet) */
|
||||
#define PRINT if(!quiet)g_print
|
||||
|
@ -439,6 +439,7 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state)
|
|||
break;
|
||||
}
|
||||
case GST_MESSAGE_EOS:
|
||||
waiting_eos = FALSE;
|
||||
g_print (_
|
||||
("Got EOS from element \"%s\".\n"),
|
||||
GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message))));
|
||||
|
|
Loading…
Reference in a new issue