From ba32f380420a4d2b0c95afd3cd47f92e4583fbc9 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sun, 7 Aug 2005 14:21:06 +0000 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ ext/gnomevfs/gstgnomevfssrc.c | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 35d3cbafd1..98737b23e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-08-07 Ronald S. Bultje + + * ext/gnomevfs/gstgnomevfssrc.c: (gst_gnomevfssrc_start): + Fix error code for file-not-found to NOT_FOUND. + 2005-08-05 Thomas Vander Stichele * common/gtk-doc-plugins.mak: diff --git a/ext/gnomevfs/gstgnomevfssrc.c b/ext/gnomevfs/gstgnomevfssrc.c index 1b73dbf4d9..92914a16b1 100644 --- a/ext/gnomevfs/gstgnomevfssrc.c +++ b/ext/gnomevfs/gstgnomevfssrc.c @@ -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; }