summaryrefslogtreecommitdiff
path: root/src/input/input_gnome_vfs.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2005-05-29 12:29:41 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2005-05-29 12:29:41 +0000
commit6a810cd8478bc874ce38ee809ceb730057648597 (patch)
treea42f758116444da44dd072bec1a8289e2417e280 /src/input/input_gnome_vfs.c
parentecfafd848b19c3ffb8279b9c57753acc305c3a39 (diff)
downloadxine-lib-6a810cd8478bc874ce38ee809ceb730057648597.tar.gz
xine-lib-6a810cd8478bc874ce38ee809ceb730057648597.tar.bz2
- Send the XINE_MSG_FILE_EMPTY UI message when trying to play an empty
(zero-sized) file CVS patchset: 7591 CVS date: 2005/05/29 12:29:41
Diffstat (limited to 'src/input/input_gnome_vfs.c')
-rw-r--r--src/input/input_gnome_vfs.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/input/input_gnome_vfs.c b/src/input/input_gnome_vfs.c
index 3ce0efa62..246e20023 100644
--- a/src/input/input_gnome_vfs.c
+++ b/src/input/input_gnome_vfs.c
@@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_gnome_vfs.c,v 1.26 2005/05/13 14:33:09 hadess Exp $
+ * $Id: input_gnome_vfs.c,v 1.27 2005/05/29 12:29:42 hadess Exp $
*/
@@ -286,6 +286,13 @@ gnomevfs_plugin_open (input_plugin_t *this_gen )
return 0;
}
+ if (gnomevfs_plugin_get_length (this_gen) == 0) {
+ _x_message(this->stream, XINE_MSG_FILE_EMPTY, this->mrl, NULL);
+ xine_log (this->stream->xine, XINE_LOG_MSG,
+ _("input_file: File empty: >%s<\n"), this->mrl);
+ return 0;
+ }
+
return 1;
}