[vlc-commits] sftp: directories have no size

Rémi Denis-Courmont git at videolan.org
Mon Aug 31 17:45:08 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Aug 31 18:38:36 2015 +0300| [fcbfac229f98ccfe7e8fad79b6edc9f2af8d0ea6] | committer: Rémi Denis-Courmont

sftp: directories have no size

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fcbfac229f98ccfe7e8fad79b6edc9f2af8d0ea6
---

 modules/access/sftp.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index 7682918..2bd56d5 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -429,6 +429,8 @@ static int Control( access_t* p_access, int i_query, va_list args )
         break;
 
     case ACCESS_GET_SIZE:
+        if( p_access->pf_readdir != NULL )
+            return VLC_EGENERIC;
         *va_arg( args, uint64_t * ) = p_access->p_sys->filesize;
         break;
 



More information about the vlc-commits mailing list