mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
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:
parent
3d021d552f
commit
d0c08ccb19
3 changed files with 9 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue