[vlc-commits] gvfs: return an error when file size is unknown
Rémi Denis-Courmont
git at videolan.org
Mon Aug 31 17:45:07 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 31 18:35:52 2015 +0300| [80b8a70e5387c475fa8cc7269762cfe1b2fe2cd4] | committer: Rémi Denis-Courmont
gvfs: return an error when file size is unknown
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=80b8a70e5387c475fa8cc7269762cfe1b2fe2cd4
---
modules/access/gnomevfs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/access/gnomevfs.c b/modules/access/gnomevfs.c
index a3f7c22..b9af23f 100644
--- a/modules/access/gnomevfs.c
+++ b/modules/access/gnomevfs.c
@@ -359,6 +359,9 @@ static int Control( access_t *p_access, int i_query, va_list args )
break;
case ACCESS_GET_SIZE:
+ if( !(p_sys->p_file_info->valid_fields
+ & GNOME_VFS_FILE_INFO_FIELDS_SIZE) )
+ return VLC_EGENERIC;
*va_arg( args, uint64_t * ) = p_sys->p_file_info->size;
break;
More information about the vlc-commits
mailing list