[vlc-commits] es_out: also count es order by group
Thomas Guillem
git at videolan.org
Wed Oct 10 10:26:00 CEST 2018
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Oct 10 10:25:44 2018 +0200| [5499409e47c7f7abdb3a55da2978d4041dfe5c8b] | committer: Thomas Guillem
es_out: also count es order by group
Always start es position to 0 for new groups.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5499409e47c7f7abdb3a55da2978d4041dfe5c8b
---
src/input/es_out.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 207520fa1b..a14afc091c 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1600,7 +1600,7 @@ static es_out_id_t *EsOutAddSlaveLocked( es_out_t *out, const es_format_t *fmt,
es->i_pos = 0;
es_out_id_t *it;
foreach_es_then_es_slaves(it)
- if( it->fmt.i_cat == fmt->i_cat )
+ if( it->fmt.i_cat == fmt->i_cat && it->fmt.i_group == fmt->i_group )
es->i_pos++;
/* Increase ref count for program */
More information about the vlc-commits
mailing list