Commit 784ee084 authored by Thomas Guillem's avatar Thomas Guillem

access: remote accesses can loop

parent e4b58df6
......@@ -690,7 +690,10 @@ static int BrowserInit( access_t *p_access )
if( p_sys->psz_share == NULL )
p_access->pf_readdir = BrowseShare;
else
{
p_access->pf_readdir = BrowseDirectory;
p_access->info.b_dir_can_loop = true;
}
return VLC_SUCCESS;
}
......@@ -666,8 +666,10 @@ static int InOpen( vlc_object_t *p_this )
b_directory = true;
if( b_directory )
{
p_access->pf_readdir = DirRead;
else
p_access->info.b_dir_can_loop = true;
} else
ACCESS_SET_CALLBACKS( Read, NULL, Control, Seek ); \
/* Start the 'stream' */
......
......@@ -296,6 +296,7 @@ static int Open( vlc_object_t* p_this )
p_sys->file = libssh2_sftp_opendir( p_sys->sftp_session, psz_path );
p_access->pf_readdir = DirRead;
p_access->info.b_dir_can_loop = true;
if( p_sys->file )
{
......
......@@ -840,6 +840,7 @@ static int Open( vlc_object_t *p_this )
p_access->pf_readdir = ReadDirectory;
p_access->info.b_dir_sorted = true;
p_access->info.b_dir_can_loop = true;
return VLC_SUCCESS;
}
......
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