~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a23a6a
)
playrtp junks old sample data in fill_buffer()
author
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 24 Sep 2007 14:29:42 +0000
(15:29 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Mon, 24 Sep 2007 14:29:42 +0000
(15:29 +0100)
clients/playrtp.c
patch
|
blob
|
blame
|
history
diff --git
a/clients/playrtp.c
b/clients/playrtp.c
index
c6260d9
..
33623ab
100644
(file)
--- a/
clients/playrtp.c
+++ b/
clients/playrtp.c
@@
-481,6
+481,8
@@
static inline int contains(const struct packet *p, uint32_t timestamp) {
* Must be called with @ref lock held.
*/
static void fill_buffer(void) {
+ while(nsamples)
+ drop_first_packet();
info("Buffering...");
while(nsamples < readahead)
pthread_cond_wait(&cond, &lock);