mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 20:25:25 +00:00
playback-test: guard against crash on failure to create pipeline
It can happen when giving incorrect parameters (ie, a URI when expecting a pipeline, etc)
This commit is contained in:
parent
60e9629860
commit
fc3a07c6a6
1 changed files with 4 additions and 1 deletions
|
@ -3478,7 +3478,10 @@ main (int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
pipelines[app.pipeline_type].func (&app, app.current_path->data);
|
pipelines[app.pipeline_type].func (&app, app.current_path->data);
|
||||||
g_assert (app.pipeline);
|
if (!app.pipeline || !GST_IS_PIPELINE (app.pipeline)) {
|
||||||
|
g_print ("Pipeline failed on %s\n", argv[3]);
|
||||||
|
exit (-1);
|
||||||
|
}
|
||||||
|
|
||||||
create_ui (&app);
|
create_ui (&app);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue