diff options
author | waker <wakeroid@gmail.com> | 2009-08-08 12:22:34 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-08 12:22:34 +0200 |
commit | b776dc9abccb3a2d8c4520668e87d455ae0c97bb (patch) | |
tree | 452b29e663622499db91af498045dda9879fe038 | |
parent | e3cf51534e013ad251eed8e7b501fb14f63325a2 (diff) |
fixed empty title for dumb modules
-rw-r--r-- | Jamfile | 4 | ||||
-rw-r--r-- | cdumb.c | 6 |
2 files changed, 6 insertions, 4 deletions
@@ -7,8 +7,8 @@ CCFLAGS += -D_GNU_SOURCE ; CCFLAGS += -std=c99 ; #CCFLAGS += -DUSE_SDL ; # CCFLAGS += -D_REENTRANT ; -OPTIM += -O0 ; -OPTIM += -g ; +OPTIM += -O2 ; +#OPTIM += -g ; HDRS += /usr/include/gtk-2.0 ; HDRS += /usr/lib/gtk-2.0/include ; @@ -756,10 +756,12 @@ cdumb_insert (playItem_t *after, const char *fname) { it->timestart = 0; it->timeend = 0; DUMB_IT_SIGDATA * itsd = duh_get_it_sigdata(duh); - if (itsd->name[0]) - { + if (itsd->name[0]) { ps_add_meta (it, "title", convstr ((char*)&itsd->name, sizeof(itsd->name))); } + else { + ps_add_meta (it, "title", NULL); + } dumb_it_do_initial_runthrough (duh); it->duration = duh_get_length (duh)/65536.0f; it->filetype = ftype; |