mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-16 19:25:18 +00:00
gst/gstdebugutils.c: Log the reason why fopen fails in addition to the fact that it failed.
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.
This commit is contained in:
parent
e2c1a6f7e9
commit
2e628be2c2
2 changed files with 8 additions and 1 deletions
|
@ -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>
|
2008-01-04 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* gst/parse/parse.l:
|
* gst/parse/parse.l:
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
#include "gstinfo.h"
|
#include "gstinfo.h"
|
||||||
#include "gstbin.h"
|
#include "gstbin.h"
|
||||||
|
@ -480,7 +481,8 @@ _gst_debug_bin_to_dot_file (GstBin * bin, GstDebugGraphDetails details,
|
||||||
fclose (out);
|
fclose (out);
|
||||||
GST_INFO ("wrote bin graph to : '%s'", full_file_name);
|
GST_INFO ("wrote bin graph to : '%s'", full_file_name);
|
||||||
} else {
|
} 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);
|
g_free (full_file_name);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue