Maybe we should check the directories do exist first?
+static int vlc_sd_probe_Open( vlc_object_t * );
+
vlc_module_begin ()
set_category( CAT_PLAYLIST )
set_subcategory( SUBCAT_PLAYLIST_SD )
vlc_module_begin ()
set_category( CAT_PLAYLIST )
set_subcategory( SUBCAT_PLAYLIST_SD )
set_callbacks( OpenPicture, Close )
add_shortcut( "picture_dir" )
set_callbacks( OpenPicture, Close )
add_shortcut( "picture_dir" )
free( psz_dir );
return i_ret;
}
free( psz_dir );
return i_ret;
}
+
+static int vlc_sd_probe_Open( vlc_object_t *obj )
+{
+ vlc_probe_t *probe = (vlc_probe_t *)obj;
+
+ vlc_sd_probe_Add( probe, "video_dir", N_("My Videos") );
+ vlc_sd_probe_Add( probe, "audio_dir", N_("My Music") );
+ return vlc_sd_probe_Add( probe, "picture_dir", N_("My Pictures") );
+}