Mercurial > audlegacy
comparison src/audacious/playlist.c @ 2690:62579e205746 trunk
[svn] - temporal workaround for a bug which introduced in r4360. without this patch, cuesheet plugin endlessly adds entries in a cue sheet to the current playlist.
author | yaz |
---|---|
date | Fri, 27 Apr 2007 10:22:03 -0700 |
parents | d2ffabee3ced |
children | 906caaf4737d |
comparison
equal
deleted
inserted
replaced
2689:18e69948e8f1 | 2690:62579e205746 |
---|---|
704 dec = NULL; | 704 dec = NULL; |
705 else if (!str_has_prefix_nocase(filename, "http://") && | 705 else if (!str_has_prefix_nocase(filename, "http://") && |
706 !str_has_prefix_nocase(filename, "https://")) | 706 !str_has_prefix_nocase(filename, "https://")) |
707 dec = input_check_file(filename, TRUE); | 707 dec = input_check_file(filename, TRUE); |
708 | 708 |
709 if (cfg.playlist_detect == TRUE || playlist->loading_playlist == TRUE || (playlist->loading_playlist == FALSE && dec != NULL) || (playlist->loading_playlist == FALSE && !is_playlist_name(filename))) | 709 #if 0 |
710 printf("loading_playlist = %d filename = %s is_playlist_name = %d\n", | |
711 playlist->loading_playlist, filename, playlist->loading_playlist); | |
712 #endif | |
713 /* XXX this line causes cuesheet plugin infinite addition to the playlist. --yaz */ | |
714 // if (cfg.playlist_detect == TRUE || playlist->loading_playlist == TRUE || (playlist->loading_playlist == FALSE && dec != NULL) || (playlist->loading_playlist == FALSE && !is_playlist_name(filename))) | |
715 if (cfg.playlist_detect == TRUE || playlist->loading_playlist == TRUE || (playlist->loading_playlist == FALSE && dec != NULL)) | |
710 { | 716 { |
711 __playlist_ins(playlist, filename, pos, dec); | 717 __playlist_ins(playlist, filename, pos, dec); |
712 playlist_generate_shuffle_list(playlist); | 718 playlist_generate_shuffle_list(playlist); |
713 playlistwin_update_list(playlist); | 719 playlistwin_update_list(playlist); |
714 return TRUE; | 720 return TRUE; |