<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 22 March 2017 at 08:43, Rémi Denis-Courmont <span dir="ltr"><<a href="mailto:remi@remlab.net" target="_blank">remi@remlab.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">Le tiistaina 21. maaliskuuta 2017, 23.21.14 EET Lukas Solanka a écrit :<br>
> This applies mostly to cue+single file flac situations when the flac file<br>
> does not have appropriate metadata. In those cases the track title coming<br>
> from the cue file is overwritten by the title from the flac file (usually<br>
> album name and not track name). This patch prevents that and keeps to<br>
> original metadata, but 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<br>
> *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>
<br>
</span>This becomes a no-op.<br>
<span class=""><div class="gmail_default" style="font-size:small;display:inline">​</div></span></blockquote><div class="gmail_default" style="font-size:small">​Of course, yes, thanks.​</div></div></div></div>