mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst-validate: do not try to use a pipeline which failed to create
Instead, error out properly with the actual error, if available.
This commit is contained in:
parent
3019586677
commit
9cf4857776
1 changed files with 5 additions and 1 deletions
|
@ -163,7 +163,11 @@ main (int argc, gchar ** argv)
|
|||
memcpy (argvn, argv + 1, sizeof (char *) * (argc - 1));
|
||||
pipeline = (GstElement *) gst_parse_launchv ((const gchar **) argvn, &err);
|
||||
g_free (argvn);
|
||||
|
||||
if (!pipeline) {
|
||||
g_print ("Failed to create pipeline: %s\n",
|
||||
err ? err->message : "unknown reason");
|
||||
exit (1);
|
||||
}
|
||||
#ifdef G_OS_UNIX
|
||||
signal_watch_id =
|
||||
g_unix_signal_add (SIGINT, (GSourceFunc) intr_handler, pipeline);
|
||||
|
|
Loading…
Reference in a new issue