# HG changeset patch # User komh # Date 1266587416 0 # Node ID ed516abd6137516cae55cb7e1b2c38504e06e0b6 # Parent e04602bd557a86063c7b2d0b6e3ab09d4aa676b5 Fix the stack crash(SYS3171) on OS/2 when playing qtaudio/qtvideo. diff -r e04602bd557a -r ed516abd6137 libmpcodecs/ad_qtaudio.c --- a/libmpcodecs/ad_qtaudio.c Fri Feb 19 13:40:04 2010 +0000 +++ b/libmpcodecs/ad_qtaudio.c Fri Feb 19 13:50:16 2010 +0000 @@ -277,6 +277,11 @@ int error; unsigned long ConvertedFrames=0; unsigned long ConvertedBytes=0; + +#ifdef WIN32_LOADER + Setup_FS_Segment(); +#endif + error=SoundConverterEndConversion(myConverter,NULL,&ConvertedFrames,&ConvertedBytes); mp_msg(MSGT_DECAUDIO,MSGL_DBG2,"SoundConverterEndConversion:%i\n",error); error = SoundConverterClose(myConverter); @@ -300,6 +305,10 @@ unsigned long ConvertedFrames=0; unsigned long ConvertedBytes=0; +#ifdef WIN32_LOADER + Setup_FS_Segment(); +#endif + FramesToGet=minlen/OutFrameSize; if(FramesToGet*OutFrameSizedisp_w, sh->disp_h); if(!mpi) return NULL; +#ifdef WIN32_LOADER + Setup_FS_Segment(); +#endif + decpar.data = (char*)data; decpar.bufferSize = len; (**framedescHandle).dataSize=len;