summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-08 12:22:34 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-08 12:22:34 +0200
commitb776dc9abccb3a2d8c4520668e87d455ae0c97bb (patch)
tree452b29e663622499db91af498045dda9879fe038
parente3cf51534e013ad251eed8e7b501fb14f63325a2 (diff)
fixed empty title for dumb modules
-rw-r--r--Jamfile4
-rw-r--r--cdumb.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/Jamfile b/Jamfile
index 3ef1922a..b709122b 100644
--- a/Jamfile
+++ b/Jamfile
@@ -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 ;
diff --git a/cdumb.c b/cdumb.c
index 0152180c..33a07416 100644
--- a/cdumb.c
+++ b/cdumb.c
@@ -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;