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
@ -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…
x
Reference in New Issue
Block a user