FernetMenta/xbmc — comment on commit ff25d6db1f52c5e6baff4247d9c905e64ec1b637
File: xbmc/cores/dvdplayer/DVDCodecs/Video/XVBA.cpp line 580
By fritsch:

unsigned int missing = num - m_dataControlBuffers.size();
for(unsigned int i = 0; i < missing; ++i)
{
XVBA_Create_DecodeBuff_Input bufferInput;
XVBA_Create_DecodeBuff_Output bufferOutput;
bufferInput.size = sizeof(bufferInput);
bufferInput.session = m_xvbaSession;
bufferInput.buffer_type = XVBA_DATA_CTRL_BUFFER;
bufferInput.num_of_buffers = 1;
bufferOutput.size = sizeof(bufferOutput);

if (Success != g_XVBA_vtable.CreateDecodeBuffers(&bufferInput, &bufferOutput)
|| bufferOutput.num_of_buffers_in_list != 1)
{
CLog::Log(LOGERROR,"(XVBA) failed to create data control buffer with %u entries." , missing);
return false;
}
m_dataControlBuffers.push_back(bufferOutput.buffer_list);
}