diff options
author | Thiago Santos <thiagoss@embedded.ufcg.edu.br> | 2009-03-31 18:14:08 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@embedded.ufcg.edu.br> | 2009-03-31 18:14:08 -0300 |
commit | 37fe4bf3b968f46a0a4adc33ff26b7e0db089a8d (patch) | |
tree | bb6289d945e32dbc29a6193d27427d7853adfc87 | |
parent | ca662eb57a64b9d74448f523ecca64ef83fa627b (diff) |
gst-launch: Fixes error when DISABLE_FAULT_HANDLER is defined
When defined, this macro prevented the declaration of 'waiting_eos', causing an error.
-rw-r--r-- | tools/gst-launch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 648a60f9be..ec38eb1f0c 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c | |||
@@ -54,7 +54,6 @@ static void fault_restore (void); | |||
54 | static void fault_spin (void); | 54 | static void fault_spin (void); |
55 | static void sigint_restore (void); | 55 | static void sigint_restore (void); |
56 | static gboolean caught_intr = FALSE; | 56 | static gboolean caught_intr = FALSE; |
57 | static gboolean waiting_eos = FALSE; | ||
58 | #endif | 57 | #endif |
59 | 58 | ||
60 | /* event_loop return codes */ | 59 | /* event_loop return codes */ |
@@ -71,6 +70,7 @@ static gboolean quiet = FALSE; | |||
71 | static gboolean tags = FALSE; | 70 | static gboolean tags = FALSE; |
72 | static gboolean messages = FALSE; | 71 | static gboolean messages = FALSE; |
73 | static gboolean is_live = FALSE; | 72 | static gboolean is_live = FALSE; |
73 | static gboolean waiting_eos = FALSE; | ||
74 | 74 | ||
75 | /* convenience macro so we don't have to litter the code with if(!quiet) */ | 75 | /* convenience macro so we don't have to litter the code with if(!quiet) */ |
76 | #define PRINT if(!quiet)g_print | 76 | #define PRINT if(!quiet)g_print |
@@ -439,6 +439,7 @@ event_loop (GstElement * pipeline, gboolean blocking, GstState target_state) | |||
439 | break; | 439 | break; |
440 | } | 440 | } |
441 | case GST_MESSAGE_EOS: | 441 | case GST_MESSAGE_EOS: |
442 | waiting_eos = FALSE; | ||
442 | g_print (_ | 443 | g_print (_ |
443 | ("Got EOS from element \"%s\".\n"), | 444 | ("Got EOS from element \"%s\".\n"), |
444 | GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message)))); | 445 | GST_STR_NULL (GST_ELEMENT_NAME (GST_MESSAGE_SRC (message)))); |