gst/gstdebugutils.c: add warning when failed to open file for writing

Original commit message from CVS:
* gst/gstdebugutils.c:
add warning when failed to open file for writing
This commit is contained in:
Thijs Vermeir 2007-12-30 12:22:49 +00:00
parent c2683ff751
commit 7e8415cdf1
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2007-12-30 Thijs Vermeir <thijsvermeir@gmail.com>
* gst/gstdebugutils.c:
add warning when failed to open file for writing
2007-12-28 Tim-Philipp Müller <tim at centricular dot net>
Based on patch by: Laurent Glayal <spglegle yahoo fr>

View file

@ -478,8 +478,10 @@ _gst_debug_bin_to_dot_file (GstBin * bin, GstDebugGraphDetails details,
/* write footer */
fprintf (out, "}\n");
fclose (out);
GST_INFO ("wrote bin graph to : '%s'", full_file_name);
} else {
GST_WARNING ("Failed to open file '%s' for writing", full_file_name);
}
GST_INFO ("wrote bin graph to : '%s'", full_file_name);
g_free (full_file_name);
}