mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
ext/gnomevfs/gstgnomevfssrc.c: Fix error code for file-not-found to NOT_FOUND.
Original commit message from CVS: * ext/gnomevfs/gstgnomevfssrc.c: (gst_gnomevfssrc_start): Fix error code for file-not-found to NOT_FOUND.
This commit is contained in:
parent
e571f069d1
commit
ba32f38042
2 changed files with 14 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-08-07 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* ext/gnomevfs/gstgnomevfssrc.c: (gst_gnomevfssrc_start):
|
||||
Fix error code for file-not-found to NOT_FOUND.
|
||||
|
||||
2005-08-05 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* common/gtk-doc-plugins.mak:
|
||||
|
|
|
@ -1095,9 +1095,15 @@ gst_gnomevfssrc_start (GstBaseSrc * basesrc)
|
|||
gst_gnomevfssrc_pop_callbacks (src);
|
||||
audiocast_thread_kill (src);
|
||||
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, (NULL),
|
||||
("Could not open vfs file \"%s\" for reading: %s",
|
||||
filename, gnome_vfs_result_to_string (res)));
|
||||
if (res == GNOME_VFS_ERROR_NOT_FOUND) {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, NOT_FOUND, (NULL),
|
||||
("Could not open vfs file \"%s\" for reading: %s",
|
||||
filename, gnome_vfs_result_to_string (res)));
|
||||
} else {
|
||||
GST_ELEMENT_ERROR (src, RESOURCE, OPEN_READ, (NULL),
|
||||
("Could not open vfs file \"%s\" for reading: %s",
|
||||
filename, gnome_vfs_result_to_string (res)));
|
||||
}
|
||||
g_free (filename);
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue