gst/gstdebugutils.c: add warning when failed to open file for writing
authorThijs Vermeir <thijsvermeir@gmail.com>
Sun, 30 Dec 2007 12:22:49 +0000 (12:22 +0000)
committerThijs Vermeir <thijsvermeir@gmail.com>
Sun, 30 Dec 2007 12:22:49 +0000 (12:22 +0000)
Original commit message from CVS:
* gst/gstdebugutils.c:
add warning when failed to open file for writing

ChangeLog
gst/gstdebugutils.c

index 90cd780..565e34b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
index 71d383e..4e490e9 100644 (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);
 }