Commit ef588896 authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

Add title play time in playback menus for MKV

Ref #4030
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 192108a171970b3d8b5faecc46d1db4374c95900)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 41fc4d93
...@@ -667,6 +667,9 @@ bool demux_sys_t::PreloadLinked() ...@@ -667,6 +667,9 @@ bool demux_sys_t::PreloadLinked()
i_chapters = 0; i_chapters = 0;
( *p_seg->Editions() )[j]->PublishChapters( *p_title, i_chapters, 0 ); ( *p_seg->Editions() )[j]->PublishChapters( *p_title, i_chapters, 0 );
// Input duration into i_length
p_title->i_length = ( *p_seg->Editions() )[j]->i_duration;
} }
// create a name if there is none // create a name if there is none
......
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