Mercurial > mplayer.hg
changeset 17880:c0fa48581ccf
Fix compilation with stupid C++ compilers that shock on valid C
constructs in an extern "C" { }.
author | albeu |
---|---|
date | Thu, 16 Mar 2006 16:55:51 +0000 |
parents | 0ca3fb62d2da |
children | 76b492415fd6 |
files | libmpdemux/stream.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/stream.h Thu Mar 16 14:42:51 2006 +0000 +++ b/libmpdemux/stream.h Thu Mar 16 16:55:51 2006 +0000 @@ -217,7 +217,7 @@ if(len <= 0 && (!cache_stream_fill_buffer(s) || (len = s->buf_len-s->buf_pos) <= 0)) break; - end = memchr((void*)(s->buffer+s->buf_pos),'\n',len); + end = (unsigned char*) memchr((void*)(s->buffer+s->buf_pos),'\n',len); if(end) len = end - (s->buffer+s->buf_pos) + 1; if(len > 0 && max > 1) { int l = len > max-1 ? max-1 : len;