• marcheu@chromium.org's avatar
    VAVDA: Cleanups and fixes. · e99ea82f
    marcheu@chromium.org authored
    This CL does some cleanups and fixes:
    - Destroy vaapi buffers after we're done drawing.If we do this before we're done drawing, the memory can be
    reclaimed by other threads in the meantime and result in
    interesting use-after-free bugs.
    - Don't leak buffers when we go through the error path.
    - Don't leak buffers when we Reset().
    - Fix a small indentation.
    
    BUG=chromium-os:33170,chromium:139755
    TEST=by hand
    
    Change-Id: Icd44bd52c5b6c8f32d904ad2980d19a090f01e38
    
    
    Review URL: https://chromiumcodereview.appspot.com/10843058
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150010 0039d316-1c4b-4281-b951-d872f2087c98
    e99ea82f
vaapi_h264_decoder.h 12.7 KB