diff options
author | Luis de Bethencourt <luis.bg@samsung.com> | 2015-04-07 15:30:30 +0100 |
---|---|---|
committer | Luis de Bethencourt <luis.bg@samsung.com> | 2015-04-07 15:30:30 +0100 |
commit | 1cee2578043002cba35aafac8a6a7b1e60df0d81 (patch) | |
tree | 55988db63f4cc7726c1a87a6df106f9b7222dc95 /tests/examples | |
parent | 4d78375d4985e1155d7dd4713605bca369e98e45 (diff) |
tests: check file exists before running appsink-src
Diffstat (limited to 'tests/examples')
-rw-r--r-- | tests/examples/app/appsink-src.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/examples/app/appsink-src.c b/tests/examples/app/appsink-src.c index a5e18a7ab..b0de46b03 100644 --- a/tests/examples/app/appsink-src.c +++ b/tests/examples/app/appsink-src.c @@ -128,6 +128,11 @@ main (int argc, char *argv[]) else filename = g_strdup ("/usr/share/sounds/ekiga/ring.wav"); + if (!g_file_test (filename, G_FILE_TEST_EXISTS)) { + g_print ("File %s does not exist\n", filename); + return -1; + } + data = g_new0 (ProgramData, 1); data->loop = g_main_loop_new (NULL, FALSE); |