Commit dfd3fa1e authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ogg: fix es creation delaying with skeleton

parent f7755e7f
...@@ -544,6 +544,9 @@ static int Demux( demux_t * p_demux ) ...@@ -544,6 +544,9 @@ static int Demux( demux_t * p_demux )
/* if a page was waiting, it's now processed */ /* if a page was waiting, it's now processed */
p_sys->b_page_waiting = false; p_sys->b_page_waiting = false;
if ( p_sys->p_skelstream && !p_sys->p_skelstream->b_finished )
p_sys->b_preparsing_done = false;
else
p_sys->b_preparsing_done = true; p_sys->b_preparsing_done = true;
p_sys->i_pcr = -1; p_sys->i_pcr = -1;
...@@ -551,7 +554,7 @@ static int Demux( demux_t * p_demux ) ...@@ -551,7 +554,7 @@ static int Demux( demux_t * p_demux )
{ {
logical_stream_t *p_stream = p_sys->pp_stream[i_stream]; logical_stream_t *p_stream = p_sys->pp_stream[i_stream];
if ( p_stream->b_force_backup ) if ( p_sys->b_preparsing_done && p_stream->b_initializing )
{ {
/* We have 1 or more streams needing more than 1 page for preparsing */ /* We have 1 or more streams needing more than 1 page for preparsing */
p_sys->b_preparsing_done = false; p_sys->b_preparsing_done = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment