[vlc-devel] [PATCH 4/7] demux: mock: parametrize subtitles codec
Francois Cartegnie
fcvlcdev at free.fr
Tue Jun 9 10:38:49 CEST 2020
---
modules/demux/mock.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mock.c b/modules/demux/mock.c
index d8fe154222..1799a221f8 100644
--- a/modules/demux/mock.c
+++ b/modules/demux/mock.c
@@ -131,7 +131,8 @@ var_Read_unsigned(const char *psz)
#define LIST_OPTIONS_SUB \
Y(sub, packetized, bool, add_bool, var_InheritBool, true)\
- Y(sub, add_track_at, vlc_tick_t, add_integer, var_InheritInteger, VLC_TICK_INVALID)
+ Y(sub, add_track_at, vlc_tick_t, add_integer, var_InheritInteger, VLC_TICK_INVALID) \
+ Y(sub, format, vlc_fourcc_t, add_string, var_InheritFourcc, "subt")
/* var_name, type, module_header_type, getter, default_value */
#define LIST_OPTIONS_GLOBAL \
@@ -664,7 +665,7 @@ ConfigureSubTrack(demux_t *demux,
{
VLC_UNUSED(demux);
- fmt->i_codec = VLC_CODEC_SUBT;
+ fmt->i_codec = options->format;
fmt->b_packetized = options->packetized;
--
2.25.4
More information about the vlc-devel
mailing list