]> git.sesse.net Git - vlc/commitdiff
sftp: change item b_net
authorThomas Guillem <thomas@gllm.fr>
Tue, 24 Mar 2015 16:22:18 +0000 (16:22 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 25 Mar 2015 14:29:57 +0000 (15:29 +0100)
Set b_net to true.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/access/sftp.c

index 5c29a9ceab445a5767eea9652adc2e0703a08218..3a59fd2e455655973fa253b749f2b440f2cc7669 100644 (file)
@@ -480,8 +480,8 @@ static int DirRead (access_t *p_access, input_item_node_t *p_current_node)
         free( psz_uri );
 
         int i_type = LIBSSH2_SFTP_S_ISDIR( attrs.permissions ) ? ITEM_TYPE_DIRECTORY : ITEM_TYPE_FILE;
-        input_item_t *p_new = input_item_NewWithType( psz_full_uri, psz_file,
-                                                      0, NULL, 0, 0, i_type );
+        input_item_t *p_new = input_item_NewWithTypeExt( psz_full_uri, psz_file,
+                                                         0, NULL, 0, 0, i_type, 1 );
 
         if( p_new == NULL )
         {