validate-scenario: Check g_file_set_contents() return value

CID #1415487
This commit is contained in:
Edward Hervey 2017-07-18 15:48:01 +02:00 committed by Edward Hervey
parent e6073a411c
commit 3904f2523b

View file

@ -3568,7 +3568,9 @@ done:
g_print ("All scenarios available:\n%s", result);
if (output_file && !err)
g_file_set_contents (output_file, result, datalength, &err);
if (!g_file_set_contents (output_file, result, datalength, &err)) {
GST_WARNING ("Error writing to file '%s'", output_file);
}
if (env_scenariodir)
g_strfreev (env_scenariodir);