[vlc-commits] smb: 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:46 2015 +0300| [65ae8f159052060dd43131aa0cc59da74c4f7262] | committer: Rémi Denis-Courmont

smb: directories have no size

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

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

diff --git a/modules/access/smb.c b/modules/access/smb.c
index 83ce77d..e5fadcd 100644
--- a/modules/access/smb.c
+++ b/modules/access/smb.c
@@ -413,6 +413,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->size;
         break;
 



More information about the vlc-commits mailing list