[vlc-commits] libVLC: Expose DiscTotal meta
Jean-Baptiste Kempf
git at videolan.org
Fri Oct 16 19:18:52 CEST 2015
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 16 19:15:20 2015 +0200| [7136d004f8843a67c80b6bc257afd48cd49a47bb] | committer: Jean-Baptiste Kempf
libVLC: Expose DiscTotal meta
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7136d004f8843a67c80b6bc257afd48cd49a47bb
---
include/vlc/libvlc_media.h | 3 ++-
lib/media.c | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/include/vlc/libvlc_media.h b/include/vlc/libvlc_media.h
index e47a6a0..262a936 100644
--- a/include/vlc/libvlc_media.h
+++ b/include/vlc/libvlc_media.h
@@ -72,7 +72,8 @@ typedef enum libvlc_meta_t {
libvlc_meta_ShowName,
libvlc_meta_Actors,
libvlc_meta_AlbumArtist,
- libvlc_meta_DiscNumber
+ libvlc_meta_DiscNumber,
+ libvlc_meta_DiscTotal
/* Add new meta types HERE */
} libvlc_meta_t;
diff --git a/lib/media.c b/lib/media.c
index 3b717c7..8919093 100644
--- a/lib/media.c
+++ b/lib/media.c
@@ -71,7 +71,8 @@ static const vlc_meta_type_t libvlc_to_vlc_meta[] =
[libvlc_meta_ShowName] = vlc_meta_ShowName,
[libvlc_meta_Actors] = vlc_meta_Actors,
[libvlc_meta_AlbumArtist] = vlc_meta_AlbumArtist,
- [libvlc_meta_DiscNumber] = vlc_meta_DiscNumber
+ [libvlc_meta_DiscNumber] = vlc_meta_DiscNumber,
+ [libvlc_meta_DiscTotal] = vlc_meta_DiscTotal
};
static const libvlc_meta_t vlc_to_libvlc_meta[] =
@@ -101,7 +102,8 @@ static const libvlc_meta_t vlc_to_libvlc_meta[] =
[vlc_meta_ShowName] = libvlc_meta_ShowName,
[vlc_meta_Actors] = libvlc_meta_Actors,
[vlc_meta_AlbumArtist] = libvlc_meta_AlbumArtist,
- [vlc_meta_DiscNumber] = libvlc_meta_DiscNumber
+ [vlc_meta_DiscNumber] = libvlc_meta_DiscNumber,
+ [vlc_meta_DiscTotal] = libvlc_meta_DiscTotal
};
static libvlc_media_list_t *media_get_subitems( libvlc_media_t * p_md,
More information about the vlc-commits
mailing list