mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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
This commit is contained in:
parent
d89dd2d325
commit
087aebf604
1 changed files with 7 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue