From fc3a07c6a64d3c7c90397d345bacf3d96b87afdc Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Thu, 11 May 2017 10:59:21 +0100 Subject: [PATCH] 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) --- tests/examples/playback/playback-test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/examples/playback/playback-test.c b/tests/examples/playback/playback-test.c index 18b5b547a2..9ec2cb3d74 100644 --- a/tests/examples/playback/playback-test.c +++ b/tests/examples/playback/playback-test.c @@ -3478,7 +3478,10 @@ main (int argc, char **argv) } 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);