[vlc-commits] ogg: minor simplification

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:35:44 2016 +0200| [045869c0105952ab61ad04fd244fb50b9832f815] | committer: Hugo Beauzée-Luyssen

ogg: minor simplification

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=045869c0105952ab61ad04fd244fb50b9832f815
---

 modules/demux/ogg.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index d2b9b5e..b388b04 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -250,10 +250,7 @@ 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;
 }
@@ -333,10 +330,7 @@ static int Demux( demux_t * p_demux )
     }
 
     if ( p_sys->b_preparsing_done && !p_sys->b_es_created )
-    {
         Ogg_CreateES( p_demux );
-        p_sys->b_es_created = true;
-    }
 
     /*
      * The first data page of a physical stream is stored in the relevant logical stream
@@ -2138,6 +2132,7 @@ static void Ogg_CreateES( demux_t *p_demux )
         Ogg_LogicalStreamDelete( p_demux, p_ogg->p_old_stream );
         p_ogg->p_old_stream = NULL;
     }
+    p_ogg->b_es_created = true;
 }
 
 /****************************************************************************



More information about the vlc-commits mailing list