Commit 371a27f5 authored by Laurent Aimar's avatar Laurent Aimar

Do not create empty title (avformat).

parent dbb3a9c9
...@@ -321,7 +321,8 @@ int OpenDemux( vlc_object_t *p_this ) ...@@ -321,7 +321,8 @@ int OpenDemux( vlc_object_t *p_this )
p_sys->ic->duration * 1000000 / AV_TIME_BASE : -1 ); p_sys->ic->duration * 1000000 / AV_TIME_BASE : -1 );
#ifdef HAVE_FFMPEG_CHAPTERS #ifdef HAVE_FFMPEG_CHAPTERS
p_sys->p_title = vlc_input_title_New(); if( p_sys->ic->nb_chapters > 0 )
p_sys->p_title = vlc_input_title_New();
for( i = 0; i < p_sys->ic->nb_chapters; i++ ) for( i = 0; i < p_sys->ic->nb_chapters; i++ )
{ {
seekpoint_t *s = vlc_seekpoint_New(); seekpoint_t *s = vlc_seekpoint_New();
......
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