<div dir="ltr"><div class="gmail_default" style="font-size:small">Fixes the track title issue described in #4143, but does not deal with track duration.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 March 2017 at 23:21, Lukas Solanka <span dir="ltr"><<a href="mailto:lsolanka@gmail.com" target="_blank">lsolanka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This applies mostly to cue+single file flac situations when the flac file does<br>
not have appropriate metadata. In those cases the track title coming from the<br>
cue file is overwritten by the title from the flac file (usually album name and<br>
not track name). This patch prevents that and keeps to original metadata, but<br>
allows to insert new fields if necessary.<br>
---<br>
 src/input/meta.c | 3 ++-<br>
 1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/input/meta.c b/src/input/meta.c<br>
index 9b79d42..8bf0baf 100644<br>
--- a/src/input/meta.c<br>
+++ b/src/input/meta.c<br>
@@ -181,7 +181,8 @@ void vlc_meta_Merge( vlc_meta_t *dst, const vlc_meta_t *src )<br>
<br>
     for( int i = 0; i < VLC_META_TYPE_COUNT; i++ )<br>
     {<br>
-        if( src->ppsz_meta[i] )<br>
+        /* Merge only meta not inserted before by someone else */<br>
+        if( !dst->ppsz_meta[i] && src->ppsz_meta[i] )<br>
         {<br>
             free( dst->ppsz_meta[i] );<br>
             dst->ppsz_meta[i] = strdup( src->ppsz_meta[i] );<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.0<br>
<br>
</font></span></blockquote></div><br></div>