diff options
author | Niklas Haas <git@haasn.xyz> | 2021-01-26 20:04:21 +0300 |
---|---|---|
committer | Jean-Baptiste Kempf <jb@videolan.org> | 2021-02-06 12:50:52 +0300 |
commit | 61b654567826d3d9ecf358edcb51e7d0985c4f66 (patch) | |
tree | 67220170fad4bb6fea053e308be749889595d40b /examples/dav1dplay.c | |
parent | 06e8ed37d32c6bf2b37d8a67d7445181c946a9ca (diff) |
dav1dplay: Update/modernize placebo-based renderer
Upstream libplacebo added support for dav1d integration directly,
allowing us to vastly simplify all of this code. In order to take
advantage of new optimizations, I had to allow update_frame to unref the
Dav1dPicture. (This is fine, since double unref is a no-op)
In addition, some of the functions we use were deprecated in recent
libplacebo versions, so since we're taking a new dependency we might as
well fix the deprecation warnings.
Diffstat (limited to 'examples/dav1dplay.c')
-rw-r--r-- | examples/dav1dplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/dav1dplay.c b/examples/dav1dplay.c index b3ab40e..e5379f4 100644 --- a/examples/dav1dplay.c +++ b/examples/dav1dplay.c @@ -317,8 +317,8 @@ static void dp_rd_ctx_post_event(Dav1dPlayRenderContext *rd_ctx, uint32_t type) static void dp_rd_ctx_update_with_dav1d_picture(Dav1dPlayRenderContext *rd_ctx, Dav1dPicture *dav1d_pic) { - renderer_info->update_frame(rd_ctx->rd_priv, dav1d_pic, &rd_ctx->settings); rd_ctx->current_ts = dav1d_pic->m.timestamp; + renderer_info->update_frame(rd_ctx->rd_priv, dav1d_pic, &rd_ctx->settings); } /** |