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
This commit is contained in:
Benjamin Otte 2004-04-25 18:24:02 +00:00
parent 3d021d552f
commit d0c08ccb19
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-04-25 Benjamin Otte <otte@gnome.org>
* gst/elements/gstfilesrc.c: (gst_filesrc_open_file):
better debugging output on error
2004-04-25 Benjamin Otte <otte@gnome.org>
* gst/gstcaps.c: (gst_caps_subtract):

View file

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

View file

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