[vlc-devel] [PATCH 07/13] access/dvdnav: merge declaration and initialization

Filip Roséen filip at atch.se
Tue Oct 11 20:06:19 CEST 2016


---
 modules/access/dvdnav.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/access/dvdnav.c b/modules/access/dvdnav.c
index dd43c47..c8413eb 100644
--- a/modules/access/dvdnav.c
+++ b/modules/access/dvdnav.c
@@ -1196,13 +1196,12 @@ static void DemuxTitles( demux_t *p_demux )
 
     for( int i = 1; i <= i_titles; i++ )
     {
-        int32_t i_chapters;
         uint64_t i_title_length;
         uint64_t *p_chapters_time;
 
-        i_chapters = dvdnav_describe_title_chapters( p_sys->dvdnav, i,
-                                                     &p_chapters_time,
-                                                     &i_title_length );
+        int32_t i_chapters = dvdnav_describe_title_chapters( p_sys->dvdnav, i,
+                                                            &p_chapters_time,
+                                                            &i_title_length );
         if( i_chapters < 1 )
         {
             i_title_length = 0;
-- 
2.10.0



More information about the vlc-devel mailing list