summaryrefslogtreecommitdiffstats
path: root/sub/dec_sub.h
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2021-05-27 00:56:41 -0500
committersfan5 <sfan5@live.de>2023-06-25 11:01:58 +0200
commitba7cc071068f4f57ae354e77f64552712fda6855 (patch)
treeeb264b91c1465e149d8d3aefdad7a9813d658b13 /sub/dec_sub.h
parent991a2f79ce381544437791430c91cd026e21d726 (diff)
downloadmpv-ba7cc071068f4f57ae354e77f64552712fda6855.tar.bz2
mpv-ba7cc071068f4f57ae354e77f64552712fda6855.tar.xz
sub: rewrite auto-forced-only support
- No longer has a fake "option" used only internally (which didn't always get propagated properly) - Always overrideable during playback
Diffstat (limited to 'sub/dec_sub.h')
-rw-r--r--sub/dec_sub.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sub/dec_sub.h b/sub/dec_sub.h
index dea5f7c5b8..21579bcde2 100644
--- a/sub/dec_sub.h
+++ b/sub/dec_sub.h
@@ -4,6 +4,7 @@
#include <stdbool.h>
#include <stdint.h>
+#include "player/core.h"
#include "osd.h"
struct sh_stream;
@@ -36,7 +37,7 @@ struct attachment_list {
int num_entries;
};
-struct dec_sub *sub_create(struct mpv_global *global, struct sh_stream *sh,
+struct dec_sub *sub_create(struct mpv_global *global, struct track *track,
struct attachment_list *attachments, int order);
void sub_destroy(struct dec_sub *sub);