gstreamer_core/tools/gst-launch.c
changeset 20 7e3786c5ed27
parent 0 0e761a78d257
child 30 7e817e7e631c
equal deleted inserted replaced
19:24ed0baaf8e5 20:7e3786c5ed27
    38 #ifndef DISABLE_FAULT_HANDLER
    38 #ifndef DISABLE_FAULT_HANDLER
    39 #include <sys/wait.h>
    39 #include <sys/wait.h>
    40 #endif
    40 #endif
    41 #include <locale.h>             /* for LC_ALL */
    41 #include <locale.h>             /* for LC_ALL */
    42 #include "tools.h"
    42 #include "tools.h"
       
    43 #include <glib.h>
       
    44 #include "../gst/gst-i18n-app.h"
    43 
    45 
    44 /* FIXME: This is just a temporary hack.  We should have a better
    46 /* FIXME: This is just a temporary hack.  We should have a better
    45  * check for siginfo handling. */
    47  * check for siginfo handling. */
    46 #ifdef SA_SIGINFO
    48 #ifdef SA_SIGINFO
    47 #define USE_SIGINFO
    49 #define USE_SIGINFO
    48 #endif
    50 #endif
    49 
    51 
    50 extern volatile gboolean glib_on_error_halt;
    52 //extern volatile gboolean glib_on_error_halt;
    51 
    53 
    52 #ifndef DISABLE_FAULT_HANDLER
    54 #ifndef DISABLE_FAULT_HANDLER
    53 static void fault_restore (void);
    55 static void fault_restore (void);
    54 static void fault_spin (void);
    56 static void fault_spin (void);
    55 static void sigint_restore (void);
    57 static void sigint_restore (void);
   579 
   581 
   580 int
   582 int
   581 main (int argc, char *argv[])
   583 main (int argc, char *argv[])
   582 {
   584 {
   583   /* options */
   585   /* options */
   584   gboolean verbose = FALSE;
   586   static gboolean verbose = FALSE;
   585   gboolean no_fault = FALSE;
   587   static gboolean no_fault = FALSE;
   586   gboolean trace = FALSE;
   588   static gboolean trace = FALSE;
   587   gchar *savefile = NULL;
   589   gchar *savefile = NULL;
   588   gchar *exclude_args = NULL;
   590   static gchar *exclude_args = NULL;
   589   GOptionEntry options[] = {
   591   GOptionEntry options[] = {
   590     {"tags", 't', 0, G_OPTION_ARG_NONE, &tags,
   592     {"tags", 't', 0, G_OPTION_ARG_NONE, &tags,
   591         N_("Output tags (also known as metadata)"), NULL},
   593         N_("Output tags (also known as metadata)"), NULL},
   592     {"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
   594     {"verbose", 'v', 0, G_OPTION_ARG_NONE, &verbose,
   593         N_("Output status information and property notifications"), NULL},
   595         N_("Output status information and property notifications"), NULL},