diff options
author | wm4 <wm4@nowhere> | 2017-04-29 15:09:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-04-29 15:09:40 +0200 |
commit | b5b3aadf40b5a94d79b4ec3f1d3a1892eba01f6a (patch) | |
tree | e4b98c4c30f268c21eb58a6a40ed06b5d67935d3 /video/vdpau.c | |
parent | 142b2f23d429389a0b5acd674b376a06953f9129 (diff) | |
download | mpv-b5b3aadf40b5a94d79b4ec3f1d3a1892eba01f6a.tar.bz2 mpv-b5b3aadf40b5a94d79b4ec3f1d3a1892eba01f6a.tar.xz |
vdpau, vaapi: unref libavutil device ref
It's a simple memory leak. (The API objects were destroyed anyway.)
Diffstat (limited to 'video/vdpau.c')
-rw-r--r-- | video/vdpau.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/vdpau.c b/video/vdpau.c index 8895053249..fa79e9bc67 100644 --- a/video/vdpau.c +++ b/video/vdpau.c @@ -481,6 +481,8 @@ void mp_vdpau_destroy(struct mp_vdpau_ctx *ctx) CHECK_VDP_WARNING(ctx, "Error when calling vdp_output_surface_destroy"); } + av_buffer_unref(&ctx->av_device_ref); + if (ctx->preemption_obj != VDP_INVALID_HANDLE) { vdp_st = vdp->output_surface_destroy(ctx->preemption_obj); CHECK_VDP_WARNING(ctx, "Error when calling vdp_output_surface_destroy"); |