[vlc-devel] Input item title
Thomas Guillem
thomas at gllm.fr
Mon Sep 28 17:20:01 CEST 2020
On Mon, Sep 28, 2020, at 17:14, Rémi Denis-Courmont wrote:
> Hello,
>
> As some of you probably know, there are currently two competing ways to set
> the title on an input item:
> - the title element in the metadata structure nested within the input item,
> - the name field in the input item.
>
> That leads to this (lib/media.c):
>
> psz_meta = input_item_GetMeta( p_md->p_input_item,
> libvlc_to_vlc_meta[e_meta] );
> /* Should be integrated in core */
> if( psz_meta == NULL && e_meta == libvlc_meta_Title
> && p_md->p_input_item->psz_name != NULL )
> psz_meta = strdup( p_md->p_input_item->psz_name );
>
> We should remove either of them, or at least force them to be kept in sync. I
> would remove the input item name field, considering as the meta title may be
> used in other scenarii (?).
Now that the meta is mandatory, I'm OK to have psz_name removed. But I'm not aware of all possible consequences.
>
> --
> 雷米‧德尼-库尔蒙
> http://www.remlab.net/
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list