summaryrefslogtreecommitdiff
path: root/src/render/queue_libplacebo.h
diff options
context:
space:
mode:
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
};