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),