From 7048ed621867f6d06d4363a8208a33cfbe3f367a Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 31 Oct 2021 13:17:39 +0100 Subject: dav1dplay: Suppress compiler warning The signature of pl_allocate/release_dav1dpic takes a void *cookie, which the compiler warns about if we don't implicitly cast. --- examples/dp_renderer_placebo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/dp_renderer_placebo.c b/examples/dp_renderer_placebo.c index 457a121..b16f6cf 100644 --- a/examples/dp_renderer_placebo.c +++ b/examples/dp_renderer_placebo.c @@ -374,7 +374,7 @@ static int placebo_alloc_pic(Dav1dPicture *const pic, void *cookie) assert(rd_priv_ctx != NULL); SDL_LockMutex(rd_priv_ctx->lock); - int ret = pl_allocate_dav1dpicture(pic, rd_priv_ctx->gpu); + int ret = pl_allocate_dav1dpicture(pic, (void *) rd_priv_ctx->gpu); SDL_UnlockMutex(rd_priv_ctx->lock); return ret; } @@ -385,7 +385,7 @@ static void placebo_release_pic(Dav1dPicture *pic, void *cookie) assert(rd_priv_ctx != NULL); SDL_LockMutex(rd_priv_ctx->lock); - pl_release_dav1dpicture(pic, rd_priv_ctx->gpu); + pl_release_dav1dpicture(pic, (void *) rd_priv_ctx->gpu); SDL_UnlockMutex(rd_priv_ctx->lock); } -- cgit v1.2.3