tools/gst-launch.c: Remove crufy code. GOption does not need this workaround.

Original commit message from CVS:
* tools/gst-launch.c: (main):
Remove crufy code. GOption does not need this workaround.
This commit is contained in:
Stefan Kost 2007-06-15 07:02:04 +00:00
parent fd12f4b150
commit ce6c77cf48
2 changed files with 5 additions and 21 deletions

View file

@ -1,3 +1,8 @@
2007-06-15 Stefan Kost <ensonic@users.sf.net>
* tools/gst-launch.c: (main):
Remove crufy code. GOption does not need this workaround.
2007-06-14 Stefan Kost <ensonic@users.sf.net>
* libs/gst/controller/gstcontroller.c:

View file

@ -558,8 +558,6 @@ exit:
int
main (int argc, char *argv[])
{
gint i, j;
/* options */
gboolean verbose = FALSE;
gboolean no_fault = FALSE;
@ -619,25 +617,6 @@ main (int argc, char *argv[])
gst_tools_print_version ("gst-launch");
/* FIXpopt: strip short args, too. We do it ourselves for now */
j = 1;
for (i = 1; i < argc; i++) {
if (*(argv[i]) == '-') {
if (strlen (argv[i]) == 2) {
gchar *c = argv[i];
c++;
if (*c == 'X' || *c == 'o') {
i++;
}
}
} else {
argv[j] = argv[i];
j++;
}
}
argc = j;
#ifndef DISABLE_FAULT_HANDLER
if (!no_fault)
fault_setup ();