<div dir="ltr">Hi there,<div>I'm completely new to VLC source code, so let me first appologize if my explanations looks confused or inaccurate to you.</div><div> </div><div>I'm digging a bit into it, trying to understand where this 6 years old bug comes from: <a href="https://trac.videolan.org/vlc/ticket/4143#no1">https://trac.videolan.org/vlc/ticket/4143#no1</a> . It's quite easy to reproduce: just take a FLAC file (with metadata in it) and the corresponding CUE file (with song names and timepoints in it). The CUE file is correctly loaded, you can see the expected songs in the playlist. However, as soon as you change the track in the playlist, the track name gets overridden by the FLAC metadata (as if you opened the FLAC file directly). One would have expected the song name not to change, that is to say to remain the same mentioned in the CUE file. </div><div><br></div><div>From what I understood, CUE files are loaded and parsed using a LUA module, then injected softly into the playlist. From this point, VLC completely looses track on the CUE file and just knows the FLAC file and its timepoints. As soon as the playlist thread switches the input, the new input kind of reloads metadata from the "master input" (don't know exactly what that is, I assume it's the FLAC file in our case) at the end of the thread initialization (see <i>input.c</i>:<b>1342</b>, Init function). That's our issue: we would expect it either not to reload the metadata at all, or to reload them from the CUE file, not the FLAC file. We can easily prove this by commenting out the first "InputSourceMeta" call in <i>input.c</i> Init function (:<b>1342</b>). Removing this line seems to fix this issue (but will most likely cause unexpected side effects in a lot of other cases).</div><div><br></div><div>What would be an acceptable fix according to you? I can see at least two solutions (not sure I'm really able to implement any of them, but I'll definitely give it a try though):</div><div><ul><li>Make the playlist aware of the CUE file and reload metadata from this CUE file.</li><li>Find some (hacky?) way to force VLC not to reload the metadata in this specific case? (But which case exactly?) </li></ul><div>I find none of these solutions completely satisfying. Any better idea would be appreciated.</div><div><br></div>Thank you in advance.<br></div><div>Nils</div></div>