mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
validate-scenario: Check g_file_set_contents() return value
CID #1415487
This commit is contained in:
parent
e6073a411c
commit
3904f2523b
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue