From da4c5c02db948c9b84aedc61107e4d607d6d2663 Mon Sep 17 00:00:00 2001
From: Denis Charmet <typx@dinauz.org>
Date: Mon, 19 Mar 2012 22:39:15 +0100
Subject: [PATCH] MKV: Use the appropriate time value to avoid loops

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit fbdbd7dab2f509c6746e9077b060098b9d7a164a)

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
---
 modules/demux/mkv/virtual_segment.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/virtual_segment.cpp b/modules/demux/mkv/virtual_segment.cpp
index 6dd0463a94..a774ebab36 100644
--- a/modules/demux/mkv/virtual_segment.cpp
+++ b/modules/demux/mkv/virtual_segment.cpp
@@ -390,7 +390,7 @@ bool virtual_segment_c::UpdateCurrentToChapter( demux_t & demux )
                         return true;
                     }
                 }
-                sys.i_start_pts = p_cur_chapter->p_chapter->i_start_time;
+                sys.i_start_pts = p_cur_chapter->i_virtual_start_time;;
             }
 
             p_current_chapter = p_cur_chapter;
-- 
2.25.4