[vlc-devel] commit: mediadirs: cleanup (Erwan Tulou )

git version control git at videolan.org
Thu Feb 11 17:54:07 CET 2010


vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu Feb 11 17:36:58 2010 +0100| [01de7da13e1258234f74e429e9e54f3e94a6cc48] | committer: Erwan Tulou 

mediadirs: cleanup

prefer more uri-friendly file://dir_path to dir://dir_path

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

 modules/services_discovery/mediadirs.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/modules/services_discovery/mediadirs.c b/modules/services_discovery/mediadirs.c
index c4b06cf..54d8925 100644
--- a/modules/services_discovery/mediadirs.c
+++ b/modules/services_discovery/mediadirs.c
@@ -190,11 +190,7 @@ static void *Run( void *data )
             !S_ISDIR( st.st_mode ) )
             continue;
 
-        // TODO:  make_URI is only for file://, what about dir:// ?
-        // char* psz_uri = make_URI( psz_dir );
-        char* psz_uri;
-        if( asprintf( &psz_uri, "dir://%s",  psz_dir ) == -1 )
-            continue;
+        char* psz_uri = make_URI( psz_dir );
 
         input_item_t* p_root = input_item_New( p_sd, psz_uri, NULL );
         if( p_sys->i_type == Picture )




More information about the vlc-devel mailing list