summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjaromil <jaromil@949728d9-16ea-0310-a75c-cbdf8430a4b8>2006-10-10 11:23:30 (GMT)
committer jaromil <jaromil@949728d9-16ea-0310-a75c-cbdf8430a4b8>2006-10-10 11:23:30 (GMT)
commit0b227c4d1e39d7b1d37df2c58656e15123b4affa (patch)
tree6f74950202b31c1635a94115ef8c3647de28246b
parent950ca4ebb0781245ef89ec6adddfe0271be3f6cb (diff)
better logging,
optimized build by default git-svn-id: svn://dyne.org/montevideo/ivysync@70 949728d9-16ea-0310-a75c-cbdf8430a4b8
-rw-r--r--trunk/Makefile4
-rw-r--r--trunk/decoder.cpp2
-rw-r--r--trunk/xmlrpc.cpp1
3 files changed, 4 insertions, 3 deletions
diff --git a/trunk/Makefile b/trunk/Makefile
index 21b25d7..327f6dd 100644
--- a/trunk/Makefile
+++ b/trunk/Makefile
@@ -12,9 +12,9 @@ GTKFLAGS = `pkg-config --cflags gtk+-2.0`
GTKLIBS = `pkg-config --libs gtk+-2.0`
# debugging flags:
-CPPFLAGS = -I. -Ixmlrpc++ -Wall -g -ggdb $(GTKFLAGS)
+#CPPFLAGS = -I. -Ixmlrpc++ -Wall -g -ggdb $(GTKFLAGS)
# optimized flags:
-#CPPFLAGS = -I. -Ixmlrpc++ -Wall -O2 -fomit-frame-pointer -ffast-math $(GTKFLAGS)
+CPPFLAGS = -I. -Ixmlrpc++ -Wall -O2 -fomit-frame-pointer -ffast-math $(GTKFLAGS)
diff --git a/trunk/decoder.cpp b/trunk/decoder.cpp
index ae46d9d..ecdd300 100644
--- a/trunk/decoder.cpp
+++ b/trunk/decoder.cpp
@@ -432,7 +432,7 @@ int Decoder::getpos() {
if(!filesize) return 0;
percent = (int) ( (filepos * 100) / filesize );
- D("movie %s at position %u %% (%lu byte)",
+ D("movie %s at position~ %u %% (%lu byte)",
playlist[position]->name, percent, filepos);
return percent;
}
diff --git a/trunk/xmlrpc.cpp b/trunk/xmlrpc.cpp
index 8386607..7a529ed 100644
--- a/trunk/xmlrpc.cpp
+++ b/trunk/xmlrpc.cpp
@@ -147,6 +147,7 @@ void Open::execute(XmlRpcValue &params, XmlRpcValue &result) {
FILE *fd;
fd = fopen(path, "r");
if(!fd) {
+ E("error opening file '%s': %s", path, strerror(errno));
result = 0.0;
return;
} else fclose(fd);