summaryrefslogtreecommitdiff
path: root/cdumb.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-09 16:21:07 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-09 16:21:07 +0200
commit5d3d436d2e5c825c1c39931479dd19f533573963 (patch)
treea2da5fe45c29ac441b3d639c9f56789de60f1b30 /cdumb.c
parent2d520c4c86d0cc67450a7a24a3f2ffba7447cf7e (diff)
huge playlist refactoring, optimized shuffle, several bugfixes
Diffstat (limited to 'cdumb.c')
-rw-r--r--cdumb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cdumb.c b/cdumb.c
index d7c30cf6..2c29344a 100644
--- a/cdumb.c
+++ b/cdumb.c
@@ -47,7 +47,7 @@ static DUH*
open_module(const char *fname, const char *ext, int *start_order, int *is_it, int *is_dos, const char **filetype);
int
-cdumb_init (const char *fname, int track, float start, float end) {
+cdumb_init (playItem_t *it) {
if (!dumb_initialized) {
atexit (&dumb_exit);
}
@@ -55,13 +55,13 @@ cdumb_init (const char *fname, int track, float start, float end) {
int start_order = 0;
int is_dos, is_it;
- const char *ext = fname + strlen (fname) - 1;
- while (*ext != '.' && ext > fname) {
+ const char *ext = it->fname + strlen (it->fname) - 1;
+ while (*ext != '.' && ext > it->fname) {
ext--;
}
ext++;
const char *ftype;
- duh = open_module(fname, ext, &start_order, &is_it, &is_dos, &ftype);
+ duh = open_module(it->fname, ext, &start_order, &is_it, &is_dos, &ftype);
// if (is_it) ReadIT(ptr, size, *m_info, !read_tag);
// else ReadDUH(duh, *m_info, !read_tag, is_dos);