Ejemplo n.º 1
0
bool playlist_loader::g_process_path_ex(const char * filename,playlist_loader_callback::ptr callback, abort_callback & abort,playlist_loader_callback::t_entry_type type)
{
	if (g_try_load_playlist(NULL, filename, callback, abort)) return true;
	//not a playlist format
	g_process_path(filename,callback,abort,type);
	return false;
}
Ejemplo n.º 2
0
bool playlist_loader::g_process_path_ex(const char * filename,playlist_loader_callback_v2 & callback,playlist_loader_callback::t_entry_type type)
{
	try {
		g_load_playlist(filename,callback);
		return true;
	} catch(exception_io_unsupported_format) {//not a playlist format
		g_process_path(filename,callback,type);
		return false;
	}
}