summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-15 22:07:12 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-15 22:07:12 +0200
commite575295f6e6e85b8a408347ab4536720ccb26ed2 (patch)
tree47a87587f7d3dc839e2dc0d425a756145c50e954
parent2f241083b11f84263fa2d3761247047b8f9405b3 (diff)
fixed hang in pl_get_idx_of
-rw-r--r--playlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/playlist.c b/playlist.c
index 9e9c4e8e..61c9fdd7 100644
--- a/playlist.c
+++ b/playlist.c
@@ -52,8 +52,8 @@
#define PLAYLIST_MAJOR_VER 1
#define PLAYLIST_MINOR_VER 1
-//#define trace(...) { fprintf(stderr, __VA_ARGS__); }
-#define trace(fmt,...)
+#define trace(...) { fprintf(stderr, __VA_ARGS__); }
+//#define trace(fmt,...)
#define SKIP_BLANK_CUE_TRACKS 1
@@ -1321,6 +1321,7 @@ pl_get_idx_of (playItem_t *it) {
idx++;
}
if (!c) {
+ UNLOCK;
return -1;
}
UNLOCK;