summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2025-03-15 20:40:38 -0400
committerAndrew Opalach <andrew@akon.city> 2025-03-15 20:40:38 -0400
commit846bd3d1b7bcec3653aa9d662f559235c4689e1b (patch)
tree56906544460079681f46d23d48d76f1a8242ea75 /src/render
parent46d5660a2582323e1c9c33a56694c322bc21b7bc (diff)
downloadcamu-846bd3d1b7bcec3653aa9d662f559235c4689e1b.tar.gz
camu-846bd3d1b7bcec3653aa9d662f559235c4689e1b.tar.bz2
camu-846bd3d1b7bcec3653aa9d662f559235c4689e1b.zip
Sink refactor wip
Dangling target won't stay around. I have a couple of ideas about how to massively simplify the handling of ended entries. Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/render')
-rw-r--r--src/render/renderer_libplacebo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/render/renderer_libplacebo.c b/src/render/renderer_libplacebo.c
index a3a3109..9fbcfc0 100644
--- a/src/render/renderer_libplacebo.c
+++ b/src/render/renderer_libplacebo.c
@@ -314,7 +314,8 @@ static void renderer_lp_render(struct camu_renderer *renderer, struct camu_scree
// Add in last_pts to account for buffer resets. This is a completely
// broken "hash" of the f64 pts value but hopefully works for now.
// https://www.virtualdub.org/blog2/entry_259.html
- lr->params.info_priv = video->buf + (intptr_t)*((u64 *)&video->buf->last_pts);
+ f64 last_pts = camu_clock_get_last_pts(video->buf->clock);
+ lr->params.info_priv = video->buf + (intptr_t)*((u64 *)&last_pts);
target->crop = mix.frames[0]->crop;
target->crop.x1 *= video->view.zoom / video->view.stretch;
target->crop.y1 *= video->view.zoom * video->view.stretch;