From d0c08ccb197b2e14042685d1e027fa2cb8592850 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sun, 25 Apr 2004 18:24:02 +0000 Subject: [PATCH] gst/elements/gstfilesrc.c: better debugging output on error Original commit message from CVS: * gst/elements/gstfilesrc.c: (gst_filesrc_open_file): better debugging output on error --- ChangeLog | 5 +++++ gst/elements/gstfilesrc.c | 3 ++- plugins/elements/gstfilesrc.c | 3 ++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6aaa8cc734..3cc40f08a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-04-25 Benjamin Otte + + * gst/elements/gstfilesrc.c: (gst_filesrc_open_file): + better debugging output on error + 2004-04-25 Benjamin Otte * gst/gstcaps.c: (gst_caps_subtract): diff --git a/gst/elements/gstfilesrc.c b/gst/elements/gstfilesrc.c index d6cddc64cb..b50e27d7f9 100644 --- a/gst/elements/gstfilesrc.c +++ b/gst/elements/gstfilesrc.c @@ -747,7 +747,8 @@ gst_filesrc_open_file (GstFileSrc * src) src->fd = open (src->filename, O_RDONLY); if (src->fd < 0) { if (errno == ENOENT) - GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND, (NULL), (NULL)); + GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND, (NULL), + ("No such file \"%s\"", src->filename)); else GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, (_("Could not open file \"%s\" for reading."), src->filename), diff --git a/plugins/elements/gstfilesrc.c b/plugins/elements/gstfilesrc.c index d6cddc64cb..b50e27d7f9 100644 --- a/plugins/elements/gstfilesrc.c +++ b/plugins/elements/gstfilesrc.c @@ -747,7 +747,8 @@ gst_filesrc_open_file (GstFileSrc * src) src->fd = open (src->filename, O_RDONLY); if (src->fd < 0) { if (errno == ENOENT) - GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND, (NULL), (NULL)); + GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND, (NULL), + ("No such file \"%s\"", src->filename)); else GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, (_("Could not open file \"%s\" for reading."), src->filename),