Skip to content

Commit

Permalink
dvdplayer: switch back to Kodi method of counting CPUs
Browse files Browse the repository at this point in the history
backported/picked from 913d400 (xbmc#9931)
  • Loading branch information
FernetMenta authored and herrnst committed Jun 13, 2016
1 parent 937991c commit ec02a3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ bool CDVDVideoCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options
}
else
{
int num_threads = av_cpu_count() * 3 / 2;
int num_threads = g_cpuInfo.getCPUCount() * 3 / 2;
num_threads = std::max(1, std::min(num_threads, 16));
m_pCodecContext->thread_count = num_threads;
m_pCodecContext->thread_safe_callbacks = 1;
Expand Down

0 comments on commit ec02a3b

Please sign in to comment.