Commit 80b8a70e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

gvfs: return an error when file size is unknown

parent d254fef4
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment