From 7e8415cdf1fe595487c7802ae791c5d5a2a6ec35 Mon Sep 17 00:00:00 2001 From: Thijs Vermeir Date: Sun, 30 Dec 2007 12:22:49 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ gst/gstdebugutils.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 90cd780..565e34b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-30 Thijs Vermeir + + * gst/gstdebugutils.c: + add warning when failed to open file for writing + 2007-12-28 Tim-Philipp Müller Based on patch by: Laurent Glayal diff --git a/gst/gstdebugutils.c b/gst/gstdebugutils.c index 71d383e..4e490e9 100644 --- a/gst/gstdebugutils.c +++ b/gst/gstdebugutils.c @@ -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); } -- 2.7.4