Update of /cvsroot/mplayerplug-in/mplayerplug-in/Source
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv20830/Source
Modified Files:
plugin-threads.cpp
Log Message:
fix endian issue on Solaris
Index: plugin-threads.cpp
===================================================================
RCS file: /cvsroot/mplayerplug-in/mplayerplug-in/Source/plugin-threads.cpp,v
retrieving revision 1.272
retrieving revision 1.273
diff -C2 -d -r1.272 -r1.273
*** plugin-threads.cpp 16 Aug 2007 15:50:21 -0000 1.272
--- plugin-threads.cpp 16 Aug 2007 15:53:26 -0000 1.273
***************
*** 824,827 ****
--- 824,828 ----
&& (local_td->instance->player != NULL)) {
// c = fgetc(local_td->instance->player);
+ // read a char here, otherwise reading int causes endian issue
amt = fread(&ch, 1, 1, local_td->instance->player);
c = amt == 1 ? ch : EOF;
|