diff options
author | Niklas Haas <git@haasn.dev> | 2021-10-31 15:17:39 +0300 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2021-10-31 15:18:22 +0300 |
commit | 7048ed621867f6d06d4363a8208a33cfbe3f367a (patch) | |
tree | 414ca4e042c3d105f757e2dacc37c583211edcd7 /examples | |
parent | f7e0d4c032dad31a46129c9eaf30ad5c2f704d2b (diff) |
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.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dp_renderer_placebo.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |