[vlc-commits] demux: mock: parametrize subtitles codec
Francois Cartegnie
git at videolan.org
Wed Jun 17 09:19:37 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jun 3 13:57:08 2020 +0200| [73f6705e5930f4fa4b52eda7b7acfaf22ab3a55b] | committer: Francois Cartegnie
demux: mock: parametrize subtitles codec
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=73f6705e5930f4fa4b52eda7b7acfaf22ab3a55b
---
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 98c3795270..70b3fc1432 100644
--- a/modules/demux/mock.c
+++ b/modules/demux/mock.c
@@ -131,7 +131,8 @@ var_Read_unsigned(const char *psz)
#define OPTIONS_SUB(Y) \
Y(sub, packetized, bool, add_bool, Bool, true)\
- Y(sub, add_track_at, vlc_tick_t, add_integer, Integer, VLC_TICK_INVALID)
+ Y(sub, add_track_at, vlc_tick_t, add_integer, Integer, VLC_TICK_INVALID) \
+ Y(sub, format, vlc_fourcc_t, add_string, Fourcc, "subt")
/* var_name, type, module_header_type, getter, default_value */
#define OPTIONS_GLOBAL(X) \
@@ -678,7 +679,7 @@ ConfigureSubTrack(demux_t *demux,
{
VLC_UNUSED(demux);
- fmt->i_codec = VLC_CODEC_SUBT;
+ fmt->i_codec = options->format;
fmt->b_packetized = options->packetized;
More information about the vlc-commits
mailing list