chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
313acc7
)
speaker: log empty buffers
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 8 Dec 2007 12:18:03 +0000
(12:18 +0000)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sat, 8 Dec 2007 12:18:03 +0000
(12:18 +0000)
server/speaker.c
patch
|
blob
|
blame
|
history
diff --git
a/server/speaker.c
b/server/speaker.c
index 1d95758687c5a6643a889a9dd6abefe8c0717ac1..4082064841abe608e80008d64457eb775dd46104 100644
(file)
--- a/
server/speaker.c
+++ b/
server/speaker.c
@@
-352,8
+352,10
@@
static void speaker_play(size_t frames) {
if(!playing->used || playing->start == (sizeof playing->buffer))
playing->start = 0;
/* If the buffer emptied out mark the track as unplayably */
if(!playing->used || playing->start == (sizeof playing->buffer))
playing->start = 0;
/* If the buffer emptied out mark the track as unplayably */
- if(!playing->used)
+ if(!playing->used) {
+ error(0, "track buffer emptied");
playing->playable = 0;
playing->playable = 0;
+ }
frames -= written_frames;
return;
}
frames -= written_frames;
return;
}