Commit 01de7da1 authored by Erwan Tulou's avatar Erwan Tulou

mediadirs: cleanup

prefer more uri-friendly file://dir_path to dir://dir_path
parent 8d5e7cc8
...@@ -190,11 +190,7 @@ static void *Run( void *data ) ...@@ -190,11 +190,7 @@ static void *Run( void *data )
!S_ISDIR( st.st_mode ) ) !S_ISDIR( st.st_mode ) )
continue; continue;
// TODO: make_URI is only for file://, what about dir:// ? char* psz_uri = make_URI( psz_dir );
// char* psz_uri = make_URI( psz_dir );
char* psz_uri;
if( asprintf( &psz_uri, "dir://%s", psz_dir ) == -1 )
continue;
input_item_t* p_root = input_item_New( p_sd, psz_uri, NULL ); input_item_t* p_root = input_item_New( p_sd, psz_uri, NULL );
if( p_sys->i_type == Picture ) if( p_sys->i_type == Picture )
......
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