{"comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/95f4cc6433f2f59214ab9c7affc6e453?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"95f4cc6433f2f59214ab9c7affc6e453","url":"https://api.github.com/users/fritsch","login":"fritsch","id":1089309},"position":580,"updated_at":"2011-11-06T13:58:51Z","commit_id":"ff25d6db1f52c5e6baff4247d9c905e64ec1b637","line":580,"url":"https://api.github.com/repos/FernetMenta/xbmc/comments/698329","body":"unsigned int missing = num - m_dataControlBuffers.size();\t\nfor(unsigned int i = 0; i < missing; ++i)\n\t{\n\t\tXVBA_Create_DecodeBuff_Input bufferInput;\n\t\tXVBA_Create_DecodeBuff_Output bufferOutput;\n\t\tbufferInput.size = sizeof(bufferInput);\n\t\tbufferInput.session = m_xvbaSession;\n\t\tbufferInput.buffer_type = XVBA_DATA_CTRL_BUFFER;\n\t\tbufferInput.num_of_buffers = 1;\n\t\tbufferOutput.size = sizeof(bufferOutput);\n\n\t\tif (Success != g_XVBA_vtable.CreateDecodeBuffers(&bufferInput, &bufferOutput)\n\t\t\t\t|| bufferOutput.num_of_buffers_in_list != 1)\n\t\t{\n\t\t\tCLog::Log(LOGERROR,\"(XVBA) failed to create data control buffer with %u entries.\" , missing);\n\t\t\treturn false;\n\t\t}\n\t\tm_dataControlBuffers.push_back(bufferOutput.buffer_list);\n\t}","html_url":"https://github.com/FernetMenta/xbmc/commit/ff25d6db1f#commitcomment-698329","id":698329,"path":"xbmc/cores/dvdplayer/DVDCodecs/Video/XVBA.cpp","created_at":"2011-11-06T13:58:51Z"}}