Skip to content
Snippets Groups Projects
Commit efd20a7e authored by Philippe Gorley's avatar Philippe Gorley
Browse files

accel: wrap unref in ifdef

This fixes the Debian stable build.

Change-Id: I5a59beb34e3379c8e950a4325ef62d3810be84f4
parent fe96d499
Branches
No related tags found
No related merge requests found
......@@ -59,8 +59,10 @@ MediaDecoder::MediaDecoder() :
MediaDecoder::~MediaDecoder()
{
#ifdef RING_ACCEL
if (decoderCtx_->hw_device_ctx)
av_buffer_unref(&decoderCtx_->hw_device_ctx);
#endif
if (decoderCtx_)
avcodec_close(decoderCtx_);
if (inputCtx_)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment