Skip to content

Commit

Permalink
DXVA: refcount decoder on get/release buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Sep 7, 2014
1 parent 00bc18f commit 24de953
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/cores/dvdplayer/DVDCodecs/Video/DXVA.cpp
Expand Up @@ -1038,6 +1038,8 @@ void CDecoder::RelBuffer(uint8_t *data)
break;
}
}

Release();
}

int CDecoder::GetBuffer(AVCodecContext *avctx, AVFrame *pic, int flags)
Expand Down Expand Up @@ -1109,6 +1111,8 @@ int CDecoder::GetBuffer(AVCodecContext *avctx, AVFrame *pic, int flags)
pic->buf[0] = buffer;
buf->used = true;

Acquire();

return 0;
}

Expand Down

0 comments on commit 24de953

Please sign in to comment.