summaryrefslogtreecommitdiff
path: root/src/render/queue_libplacebo.h
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2026-04-13 17:36:54 -0400
committerAndrew Opalach <andrew@akon.city> 2026-04-13 17:36:54 -0400
commit4ceadc74f0086168fbc576032ba3e6f23af16e39 (patch)
treea542703d78f2b29ac1a756fdceec78e40860bab0 /src/render/queue_libplacebo.h
parent77b54c35bf9587450cd636e0d7df37e190e28bfb (diff)
downloadcamu-4ceadc74f0086168fbc576032ba3e6f23af16e39.tar.gz
camu-4ceadc74f0086168fbc576032ba3e6f23af16e39.tar.bz2
camu-4ceadc74f0086168fbc576032ba3e6f23af16e39.zip
Changes that went uncommitted for too long
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/render/queue_libplacebo.h')
-rw-r--r--src/render/queue_libplacebo.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/render/queue_libplacebo.h b/src/render/queue_libplacebo.h
index 0d49000..f72cb88 100644
--- a/src/render/queue_libplacebo.h
+++ b/src/render/queue_libplacebo.h
@@ -4,7 +4,6 @@
#ifdef CAMU_HAVE_FFMPEG
#include <al/lib.h>
AL_IGNORE_WARNING("-Wswitch")
-AL_IGNORE_WARNING("-Wunused-parameter")
// PL_LIBAV_IMPLEMENTATION defined in queue_libplacebo.c.
#include <libplacebo/utils/libav.h>
AL_IGNORE_WARNING_END
@@ -25,13 +24,17 @@ struct camu_frame_queue_lp {
AVFrame *swframe;
#endif
#ifdef CAMU_HAVE_SUBTITLES
- ASS_Library *ass;
- ASS_Renderer *ass_renderer;
- ASS_Track *ass_track;
- struct nn_mutex subtitle_lock;
- struct camu_overlay *last_subtitle;
- array(struct camu_overlay *) subtitles;
- bool has_subtitles;
+ struct {
+ bool are_present;
+ bool conversion_needed;
+ AVCodecContext *converter;
+ ASS_Library *ass;
+ ASS_Renderer *renderer;
+ ASS_Track *track;
+ struct camu_overlay *last;
+ array(struct camu_overlay *) overlays;
+ struct nn_mutex lock;
+ } subs;
#endif
};