mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
fd12f4b150
commit
ce6c77cf48
2 changed files with 5 additions and 21 deletions
|
@ -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:
|
||||
|
|
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue