2012-04-27, 22:02
(2012-04-26, 10:11)spiff Wrote: we figured it was so simple, we have left it to you.
I've followed the wiki tutorial, download xbmc code, and knowing absolutely nothing, it take me aroud... 10 minutes to figure out 2 possibilities at first time...
Edited : After having seen a little more, i think the following is good, so only one proposition left :
Code:
/* Only allow slice threading, since frame threading is more
* sensitive to changes in frame sizes, and it causes crashes
* during HW accell */
bool disable_mt_frame=true;
#ifdef HAS_DX
disable_mt_frame=g_guiSettings.GetBool("videoplayer.usedxva2");
#endif
if (disable_mt_frame) m_pCodecContext->thread_type = FF_THREAD_SLICE;
else m_pCodecContext->thread_type = FF_THREAD_FRAME;
This was indeed higly complex...
Nevertheless, i think a dev must confirm.