diff options
author | Benjamin Otte <otte@gnome.org> | 2003-04-10 01:40:03 +0000 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2003-04-10 01:40:03 +0000 |
commit | 087aebf604a6d8a1109168fb5355ac05e969b9ed (patch) | |
tree | bd4ee5532d34cebc8be1078ccfff18cdc308b574 /tools | |
parent | d89dd2d325175295a768749d7ad9bafa69f99945 (diff) |
patch to gst-launch - a pipeline parsing can result in an error even though a pipeline is returned
Original commit message from CVS:
patch to gst-launch - a pipeline parsing can result in an error even though a pipeline is returned
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gst-launch.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/gst-launch.c b/tools/gst-launch.c index 06980d1dd..eba59eb4b 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -259,11 +259,16 @@ main(int argc, char *argv[]) g_free (argvn); if (!pipeline) { - if (error) + if (error) { fprintf(stderr, "ERROR: pipeline could not be constructed: %s\n", error->message); - else + g_error_free (error); + } else { fprintf(stderr, "ERROR: pipeline could not be constructed\n"); + } exit(1); + } else if (error) { + fprintf(stderr, "WARNING: erroneous pipeline: %s\n Trying to run anyway\n", error->message); + g_error_free (error); } if (verbose) { |