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