diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /stream/realrtsp/xbuffer.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'stream/realrtsp/xbuffer.c')
-rw-r--r-- | stream/realrtsp/xbuffer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/realrtsp/xbuffer.c b/stream/realrtsp/xbuffer.c index de68125ef1..6b408d68bb 100644 --- a/stream/realrtsp/xbuffer.c +++ b/stream/realrtsp/xbuffer.c @@ -1,4 +1,4 @@ -/* +/* * xbuffer code * * Includes a minimalistic replacement for xine_buffer functions used in @@ -28,7 +28,7 @@ typedef struct { -void *xbuffer_init(int chunk_size) { +void *xbuffer_init(int chunk_size) { uint8_t *data=calloc(1,chunk_size+XBUFFER_HEADER_SIZE); xbuffer_header_t *header=(xbuffer_header_t*)data; @@ -75,7 +75,7 @@ void *xbuffer_ensure_size(void *buf, int size) { } xbuf = ((xbuffer_header_t*)(((uint8_t*)buf)-XBUFFER_HEADER_SIZE)); - + if (xbuf->size < size) { new_size = size + xbuf->chunk_size - (size % xbuf->chunk_size); xbuf->size = new_size; |