diff options
author | 2009-08-13 20:16:27 +0200 | |
---|---|---|
committer | 2009-08-13 20:16:27 +0200 | |
commit | 7a6d5e2a410208539ec42efca38eed1f2372b357 (patch) | |
tree | 0c144c1232a9c8515f68e02a1a81097694091424 /streamer.c | |
parent | ccaf593e039b0a19aa3cf4601ae283fe438224cd (diff) |
fixed several critical drag and drop bugs
Diffstat (limited to 'streamer.c')
-rw-r--r-- | streamer.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -108,7 +108,7 @@ streamer_thread (uintptr_t ctx) { streambuffer_fill += bytesread; } streamer_unlock (); - usleep (3000); + usleep (2000); //printf ("fill: %d \r", streambuffer_fill); } @@ -290,3 +290,8 @@ streamer_read (char *bytes, int size) { streamer_unlock (); return sz; } + +int +streamer_get_fill_level (void) { + return streambuffer_fill / (STREAM_BUFFER_SIZE / 100); +} |