[vlc-devel] [PATCH] lib: expose new meta data attributes

Jean-Baptiste Kempf jb at videolan.org
Sat Feb 8 16:11:52 CET 2014


Applied.


On 08 Feb, Mark Lee wrote :
> ---
>  include/vlc/libvlc_media.h |  8 +++++++-
>  lib/media.c                | 16 ++++++++++++++--
>  2 files changed, 21 insertions(+), 3 deletions(-)
> 
> diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
> index eaa41f0..948230a 100644
> --- a/include/vlc/libvlc_media.h
> +++ b/include/vlc/libvlc_media.h
> @@ -67,7 +67,13 @@ typedef enum libvlc_meta_t {
>      libvlc_meta_Publisher,
>      libvlc_meta_EncodedBy,
>      libvlc_meta_ArtworkURL,
> -    libvlc_meta_TrackID
> +    libvlc_meta_TrackID,
> +    libvlc_meta_TrackTotal,
> +    libvlc_meta_Director,
> +    libvlc_meta_Season,
> +    libvlc_meta_Episode,
> +    libvlc_meta_ShowName,
> +    libvlc_meta_Actors
>      /* Add new meta types HERE */
>  } libvlc_meta_t;
>  
> diff --git a/lib/media.c b/lib/media.c
> index 04314b0..ef845cd 100644
> --- a/lib/media.c
> +++ b/lib/media.c
> @@ -61,7 +61,13 @@ static const vlc_meta_type_t libvlc_to_vlc_meta[] =
>      [libvlc_meta_Publisher]    = vlc_meta_Publisher,
>      [libvlc_meta_EncodedBy]    = vlc_meta_EncodedBy,
>      [libvlc_meta_ArtworkURL]   = vlc_meta_ArtworkURL,
> -    [libvlc_meta_TrackID]      = vlc_meta_TrackID
> +    [libvlc_meta_TrackID]      = vlc_meta_TrackID,
> +    [libvlc_meta_TrackTotal]   = vlc_meta_TrackTotal,
> +    [libvlc_meta_Director]     = vlc_meta_Director,
> +    [libvlc_meta_Season]       = vlc_meta_Season,
> +    [libvlc_meta_Episode]      = vlc_meta_Episode,
> +    [libvlc_meta_ShowName]     = vlc_meta_ShowName,
> +    [libvlc_meta_Actors]       = vlc_meta_Actors
>  };
>  
>  static const libvlc_meta_t vlc_to_libvlc_meta[] =
> @@ -82,7 +88,13 @@ static const libvlc_meta_t vlc_to_libvlc_meta[] =
>      [vlc_meta_Publisher]    = libvlc_meta_Publisher,
>      [vlc_meta_EncodedBy]    = libvlc_meta_EncodedBy,
>      [vlc_meta_ArtworkURL]   = libvlc_meta_ArtworkURL,
> -    [vlc_meta_TrackID]      = libvlc_meta_TrackID
> +    [vlc_meta_TrackID]      = libvlc_meta_TrackID,
> +    [vlc_meta_TrackTotal]   = libvlc_meta_TrackTotal,
> +    [vlc_meta_Director]     = libvlc_meta_Director,
> +    [vlc_meta_Season]       = libvlc_meta_Season,
> +    [vlc_meta_Episode]      = libvlc_meta_Episode,
> +    [vlc_meta_ShowName]     = libvlc_meta_ShowName,
> +    [vlc_meta_Actors]       = libvlc_meta_Actors
>  };
>  
>  /**************************************************************************
> -- 
> 1.8.1.2
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list