[MPlayer-cvslog] CVS: main/libmpdemux stream.h,1.78,1.79
Alban Bedel CVS
syncmail at mplayerhq.hu
Thu Mar 16 17:55:53 CET 2006
CVS change done by Alban Bedel CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv16343/libmpdemux
Modified Files:
stream.h
Log Message:
Fix compilation with stupid C++ compilers that shock on valid C
constructs in an extern "C" { }.
Index: stream.h
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.h,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- stream.h 16 Mar 2006 14:42:51 -0000 1.78
+++ stream.h 16 Mar 2006 16:55:51 -0000 1.79
@@ -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;
More information about the MPlayer-cvslog
mailing list