mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
tests: check file exists before running appsink-src
This commit is contained in:
parent
4d78375d49
commit
1cee257804
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue