[Mplayerxp-cvslog] SF.net SVN: mplayerxp:[580] mplayerxp
Brought to you by:
olov
From: <nic...@us...> - 2012-12-20 08:10:38
|
Revision: 580 http://mplayerxp.svn.sourceforge.net/mplayerxp/?rev=580&view=rev Author: nickols_k Date: 2012-12-20 08:10:31 +0000 (Thu, 20 Dec 2012) Log Message: ----------- small fixes! About illegal patch: i still cannot fix segfault in int32_to_int16 function. Below printed gdb's listing of this place. It seems that i have substituted content of stdint.h file with extremely substituted #defines which time from time restore original value of types. More that obviously that such behaviour is impossible without hacked compiler. Breakpoint 1, int32_to_int16_SSE3 (in_data=0x7fffee0a4a20, out_data= 0x7fffe80009b0, inlen=9216, final=0) at ./aflib_accel.h:131 131 unsigned i,insamples = inlen/sizeof(int32_t); (gdb) n 140 i=0; (gdb) print insamples $1 = 9216 (gdb) n 134 len_mm=inlen&(~(_ivec_size()-1)); (gdb) print insamples $2 = 9216 (gdb) print inlen $3 = 9216 (gdb) n 131 unsigned i,insamples = inlen/sizeof(int32_t); (gdb) print insamples $4 = 9216 (gdb) n 142 if(!_ivec_aligned(out_data)) (gdb) print insamples $5 = 2304 (gdb) n 147 if((len_mm-i)>=_ivec_size()) (gdb) n 135 mm_insamples=len_mm/sizeof(int32_t); (gdb) n 148 for(;i<mm_insamples;i+=vec_insamples) (gdb) print mm_insamples $6 = <optimized out> (gdb) print insamples $7 = 2304 Modified Paths: -------------- mplayerxp/mpxp_msg.cpp mplayerxp/mpxp_msg.h Modified: mplayerxp/mpxp_msg.cpp =================================================================== --- mplayerxp/mpxp_msg.cpp 2012-12-19 17:44:09 UTC (rev 579) +++ mplayerxp/mpxp_msg.cpp 2012-12-20 08:10:31 UTC (rev 580) @@ -48,7 +48,7 @@ void mpxp_streambuf::put_chars(char const* begin, char const* end) const { if(!(parent._type&mp_conf.msg_filter)) { parent.setstate(std::ios_base::badbit); return; } - if(::isatty(::fileno(::stderr))) std::cerr<<data; + if(::isatty(::fileno(::stderr))) ::fwrite(data.c_str(),data.length(),1,::stderr); ::fwrite(begin,end-begin,1,::stderr); } Modified: mplayerxp/mpxp_msg.h =================================================================== --- mplayerxp/mpxp_msg.h 2012-12-19 17:44:09 UTC (rev 579) +++ mplayerxp/mpxp_msg.h 2012-12-20 08:10:31 UTC (rev 580) @@ -70,7 +70,7 @@ // For EOF detection typedef std::char_traits< char > Traits; // Work in buffer mode. It is also possible to work without buffer. - static size_t const BUF_SIZE = 256; + static size_t const BUF_SIZE = 2048; Opaque unusable; char buf[BUF_SIZE]; // This is example about userdata This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |