*/
void playlist_close(void)
{
+ int ret;
+
+ if (!current_playlist.name)
+ return;
free(current_playlist.name);
current_playlist.name = NULL;
}
PARA_NOTICE_LOG("failed to load playlist %s\n", name);
return ret;
}
+ playlist_close();
ret = load_playlist(row, ¤t_playlist);
- return (ret == -E_PLAYLIST_LOADED)? 1 : ret;
+ return (ret == -E_PLAYLIST_LOADED)? current_playlist.length : ret;
}
static int search_path(char *path, void *data)