[vlc-devel] [PATCH 02/10] es_out: only copy the SPU strings on SPU tracks in EsOutUpdateInfo()
Steve Lhomme
robux4 at videolabs.io
Fri Jul 7 12:56:10 CEST 2017
---
src/input/es_out.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 69ea835fda..e0a1878f59 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -2961,10 +2961,13 @@ static void EsOutUpdateInfo( es_out_t *out, es_out_id_t *es, const es_format_t *
update.psz_language = es->fmt.psz_language;
if (update.psz_description == NULL)
update.psz_description = es->fmt.psz_description;
- if (update.subs.psz_encoding == NULL)
- update.subs.psz_encoding = es->fmt.subs.psz_encoding;
- if (update.subs.p_style == NULL)
- update.subs.p_style = es->fmt.subs.p_style;
+ if (update.i_cat == SPU_ES)
+ {
+ if (update.subs.psz_encoding == NULL)
+ update.subs.psz_encoding = es->fmt.subs.psz_encoding;
+ if (update.subs.p_style == NULL)
+ update.subs.p_style = es->fmt.subs.p_style;
+ }
if (update.i_extra_languages == 0)
{
assert(update.p_extra_languages == NULL);
--
2.12.1
More information about the vlc-devel
mailing list