<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Style-Type" content="text/css" />
  <meta name="generator" content="pandoc" />
  <title></title>
  <style type="text/css">code{white-space: pre;}</style>
</head>
<body>
<p>Hi j-b,</p>
<p>On 2017-02-20 19:05, Jean-Baptiste Kempf wrote:</p>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> Hello,

 On Mon, 20 Feb 2017, at 18:10, Filip Roséen wrote:</code></pre>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;color:#500050">
<pre><code> As part of seeking to a new virtual chapter, we have to destroy the
 elementary streams that are part of the current one, and then create
 the streams associated with the seeking-to virtual chapter.</code></pre>
</blockquote>
<pre><code> Doesn't that lose the selected audio and subtitle track?</code></pre>
</blockquote>
<p>The way things are handled in the relevant code-path is the same as when playing an mkv with linked segments normally (back to back). There is code in-place to remember the previously selected <em>audio-</em> and <em>subtitle-track</em> language in order to continue with a matching track (if available).</p>
<p>See the below links:</p>
<ul>
<li>call to <code>virtual_segment_c::KeepTrackSelection</code>:</li>
<li><p>http://git.videolan.org/?p=vlc.git;a=blob;f=modules/demux/mkv/virtual_segment.cpp;h=6d1863b9ac449f6ed6a4ad845c2ee321a6551bb5;hb=HEAD#l542</p></li>
<li>implementation of <code>virtual_segment_c::KeepTrackSelection</code>:</li>
<li><p>http://git.videolan.org/?p=vlc.git;a=blob;f=modules/demux/mkv/virtual_segment.cpp;h=6d1863b9ac449f6ed6a4ad845c2ee321a6551bb5;hb=HEAD#l689</p></li>
</ul>
<p>Best Regards,<br />
Filip</p>
</body>
</html>