[vlc-commits] ogg: Create the ES when preparsing.
Hugo Beauzée-Luyssen
git at videolan.org
Mon Oct 24 15:39:33 CEST 2016
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Oct 24 15:31:04 2016 +0200| [a26666c2a9f7604b0242b4bffeb9ff8e7b1f101d] | committer: Hugo Beauzée-Luyssen
ogg: Create the ES when preparsing.
This allows us to query the initial tracks
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a26666c2a9f7604b0242b4bffeb9ff8e7b1f101d
---
modules/demux/ogg.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 37ef49a..d2b9b5e 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -249,6 +249,11 @@ static int Open( vlc_object_t * p_this )
while ( !p_sys->b_preparsing_done && p_demux->pf_demux( p_demux ) > 0 )
{}
+ if ( p_sys->b_preparsing_done && p_demux->p_input->b_preparsing )
+ {
+ Ogg_CreateES( p_demux );
+ p_sys->b_es_created = true;
+ }
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list