Mercurial > audlegacy
changeset 3169:b1964057a1a0 trunk
Hardcoded a dummy path to use with cdaudio-ng plugin
author | Calin Crisan ccrisan@gmail.com |
---|---|
date | Thu, 26 Jul 2007 12:10:34 +0300 |
parents | ee8a1ed30826 |
children | 93d2cda7e072 734a25cd1efb b10e5891fa85 |
files | src/audacious/input.c src/audacious/ui_main.c src/audacious/ui_main.h |
diffstat | 3 files changed, 19 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/input.c Wed Jul 25 19:10:53 2007 -0500 +++ b/src/audacious/input.c Thu Jul 26 12:10:34 2007 +0300 @@ -380,6 +380,8 @@ continue; if (ip->is_our_file != NULL) ret = ip->is_our_file(filename_proxy); + else + ret = 0; if (ret > 0) { g_free(filename_proxy);
--- a/src/audacious/ui_main.c Wed Jul 25 19:10:53 2007 -0500 +++ b/src/audacious/ui_main.c Thu Jul 26 12:10:34 2007 +0300 @@ -2228,6 +2228,8 @@ { GList *list, *node; gchar *filename; + + /* gchar *path; ConfigDb *db; @@ -2241,20 +2243,21 @@ } else bmp_cfg_db_close(db); - - if (!(list = input_scan_dir(path))) { + */ + + if (!(list = input_scan_dir(CDDA_DUMMY_PATH))) { run_no_audiocd_dialog(); return; } for (node = list; node; node = g_list_next(node)) { - filename = g_build_filename(path, node->data, NULL); + filename = g_build_filename(CDDA_DUMMY_PATH, node->data, NULL); playlist_add(playlist_get_active(), filename); g_free(filename); g_free(node->data); } - g_free(path); + /*g_free(path);*/ g_list_free(list); } @@ -2264,15 +2267,19 @@ { GList *list, *node; gchar *filename; + /* gchar *path; ConfigDb *db; + */ Playlist *playlist = playlist_get_active(); + /* db = bmp_cfg_db_open(); bmp_cfg_db_get_string(db, "CDDA", "directory", &path); bmp_cfg_db_close(db); - - if (!(list = input_scan_dir(path))) { + */ + + if (!(list = input_scan_dir(CDDA_DUMMY_PATH))) { run_no_audiocd_dialog(); return; } @@ -2280,13 +2287,13 @@ playlist_clear(playlist); for (node = list; node; node = g_list_next(node)) { - filename = g_build_filename(path, node->data, NULL); + filename = g_build_filename(CDDA_DUMMY_PATH, node->data, NULL); playlist_add(playlist, filename); g_free(filename); g_free(node->data); } - g_free(path); + /*g_free(path);*/ g_list_free(list); playlist_set_position(playlist, 0);