]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
gst/gstdebugutils.c: Log the reason why fopen fails in addition to the fact that...
authorTim-Philipp Müller <tim@centricular.net>
Sat, 5 Jan 2008 13:45:22 +0000 (13:45 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 5 Jan 2008 13:45:22 +0000 (13:45 +0000)
Original commit message from CVS:
* gst/gstdebugutils.c: (_gst_debug_bin_to_dot_file):
Log the reason why fopen fails in addition to the fact that it failed.

ChangeLog
gst/gstdebugutils.c

index 4da7ea2a61fe88ea566d766ba74dd339e122db32..49dee73be3fc551ff88c98e205db137647b34851 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-05  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/gstdebugutils.c: (_gst_debug_bin_to_dot_file):
+         Log the reason why fopen fails in addition to the fact that it failed.
+         
 2008-01-04  Sebastian Dröge  <slomo@circular-chaos.org>
 
        * gst/parse/parse.l:
index 4e490e9b8afdb3c8bf69fbe81ff77a16b58fa019..9cdf0ff9c6fe1e6b1ed8f97196eff0269416d0d7 100644 (file)
@@ -34,6 +34,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <errno.h>
 
 #include "gstinfo.h"
 #include "gstbin.h"
@@ -480,7 +481,8 @@ _gst_debug_bin_to_dot_file (GstBin * bin, GstDebugGraphDetails details,
     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_WARNING ("Failed to open file '%s' for writing: %s", full_file_name,
+        g_strerror (errno));
   }
   g_free (full_file_name);
 }