vlc/vlc-1.2 | branch: master | Edward Wang <[email protected]> | 
Sun Dec 11 12:07:06 2011 +0100| [ef5888961feaac6471984cf92374d2d638dd4962] | 
committer: Jean-Baptiste Kempf

Add title play time in playback menus for MKV

Ref #4030

Signed-off-by: Jean-Baptiste Kempf <[email protected]>
(cherry picked from commit 192108a171970b3d8b5faecc46d1db4374c95900)

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/demux/mkv/demux.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
index 83edcb7..8d4d25a 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -667,6 +667,9 @@ bool demux_sys_t::PreloadLinked()
 
                 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

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to