diff options
| author | 2026-07-02 17:58:38 -0400 | |
|---|---|---|
| committer | 2026-07-02 18:00:10 -0400 | |
| commit | 38cce5e94a10e5420e4685bbe5ebb1aade6d522f (patch) | |
| tree | e2e49e69c225a9f9a224d02ae1f7a5c27af91f19 /src/buffer/frame_queue.h | |
| parent | 34933b7e1d682e67702999270cd3ceec0e167316 (diff) | |
| download | camu-38cce5e94a10e5420e4685bbe5ebb1aade6d522f.tar.gz camu-38cce5e94a10e5420e4685bbe5ebb1aade6d522f.tar.bz2 camu-38cce5e94a10e5420e4685bbe5ebb1aade6d522f.zip | |
Allow count to be more correct in frame_queue API
queue_libplacebo's behavior is currently unchanged, though.
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/buffer/frame_queue.h')
| -rw-r--r-- | src/buffer/frame_queue.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/buffer/frame_queue.h b/src/buffer/frame_queue.h index ca47457..6626b95 100644 --- a/src/buffer/frame_queue.h +++ b/src/buffer/frame_queue.h @@ -17,14 +17,13 @@ enum { struct camu_frame_queue { struct camu_video_buffer *buf; bool (*configure_subtitles)(struct camu_frame_queue *, u32, u32, struct camu_codec_stream *); - void (*push)(struct camu_frame_queue *, struct camu_codec_frame *, f64); + void (*push)(struct camu_frame_queue *, struct camu_codec_frame *, f64, u32 *); #ifdef CAMU_HAVE_FFMPEG - void (*push_av_frame)(struct camu_frame_queue *, AVFrame *, f64); + void (*push_av_frame)(struct camu_frame_queue *, AVFrame *, f64, u32 *); #endif void (*push_subtitle)(struct camu_frame_queue *, struct camu_codec_packet *); - void (*flush)(struct camu_frame_queue *); - s32 (*count)(struct camu_frame_queue *); - u8 (*read)(struct camu_frame_queue *, f64, void *); + void (*flush)(struct camu_frame_queue *, u32 *); + u8 (*read)(struct camu_frame_queue *, f64, void *, u32 *); void (*reset)(struct camu_frame_queue *); void (*free)(struct camu_frame_queue **); }; |