[vlc-commits] demux: ogg: enforce exclusive mode
Thomas Guillem
git at videolan.org
Fri Feb 28 20:46:29 CET 2020
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 28 08:57:06 2020 +0100| [2aa6d5adc8ce5b36a8dc0b01f9f4d1ca631c30dd] | committer: Thomas Guillem
demux: ogg: enforce exclusive mode
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2aa6d5adc8ce5b36a8dc0b01f9f4d1ca631c30dd
---
modules/demux/ogg.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index d50141e56d..c81f5bb1b3 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -248,6 +248,9 @@ static int Open( vlc_object_t * p_this )
/* */
TAB_INIT( p_sys->i_seekpoints, p_sys->pp_seekpoints );
+ /* Enforce exclusive mode, only one track can be selected at once. */
+ es_out_Control( p_demux->out, ES_OUT_SET_ES_CAT_POLICY, AUDIO_ES,
+ ES_OUT_ES_POLICY_EXCLUSIVE );
while ( !p_sys->b_preparsing_done && p_demux->pf_demux( p_demux ) > 0 )
{}
More information about the vlc-commits
mailing list