[vlc-commits] commit: MP4: do not depend on id3tag plugin ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Mon Jul 19 22:36:48 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 19 23:34:57 2010 +0300| [c95dc9e8a95274d7c6eeffc5024e38124e7fb964] | committer: Rémi Denis-Courmont 

MP4: do not depend on id3tag plugin

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c95dc9e8a95274d7c6eeffc5024e38124e7fb964
---

 modules/demux/mp4/Modules.am  |    1 +
 modules/demux/mp4/id3genres.h |  108 +++++++++++++++++++++++++++++++++++++++++
 modules/demux/mp4/mp4.c       |    2 +-
 po/POTFILES.in                |    2 +-
 4 files changed, 111 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mp4/Modules.am b/modules/demux/mp4/Modules.am
index 34ee3bd..17fdb73 100644
--- a/modules/demux/mp4/Modules.am
+++ b/modules/demux/mp4/Modules.am
@@ -5,6 +5,7 @@ SOURCES_mp4 = \
 	drms.c \
 	drms.h \
 	drmstables.h \
+	id3genres.h \
 	$(NULL)
 
 libvlc_LTLIBRARIES += libmp4_plugin.la
diff --git a/modules/demux/mp4/id3genres.h b/modules/demux/mp4/id3genres.h
new file mode 100644
index 0000000..4f9d648
--- /dev/null
+++ b/modules/demux/mp4/id3genres.h
@@ -0,0 +1,108 @@
+/*****************************************************************************
+ * id3genres.h: list of genres for id3 genre tags
+ *****************************************************************************
+ * Copyright (C) 2002-2003 the VideoLAN team
+ * $Id$
+ *
+ * Author: Sigmund Augdal Helberg <dnumgis at videolan.org>
+ *         list found at http://www.id3.org/id3v2.4.0-frames.txt
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ *****************************************************************************/
+
+#define NUM_GENRES 80
+
+static const char *ppsz_genres[] = {
+    N_("Blues"),
+    N_("Classic rock"),
+    N_("Country"),
+    N_("Dance"),
+    N_("Disco"),
+    N_("Funk"),
+    N_("Grunge"),
+    N_("Hip-Hop"),
+    N_("Jazz"),
+    N_("Metal"),
+    N_("New Age"),
+    N_("Oldies"),
+    N_("Other"),
+    N_("Pop"),
+    N_("R&B"),
+    N_("Rap"),
+    N_("Reggae"),
+    N_("Rock"),
+    N_("Techno"),
+    N_("Industrial"),
+    N_("Alternative"),
+    N_("Ska"),
+    N_("Death metal"),
+    N_("Pranks"),
+    N_("Soundtrack"),
+    N_("Euro-Techno"),
+    N_("Ambient"),
+    N_("Trip-Hop"),
+    N_("Vocal"),
+    N_("Jazz+Funk"),
+    N_("Fusion"),
+    N_("Trance"),
+    N_("Classical"),
+    N_("Instrumental"),
+    N_("Acid"),
+    N_("House"),
+    N_("Game"),
+    N_("Sound clip"),
+    N_("Gospel"),
+    N_("Noise"),
+    N_("Alternative rock"),
+    N_("Bass"),
+    N_("Soul"),
+    N_("Punk"),
+    N_("Space"),
+    N_("Meditative"),
+    N_("Instrumental pop"),
+    N_("Instrumental rock"),
+    N_("Ethnic"),
+    N_("Gothic"),
+    N_("Darkwave"),
+    N_("Techno-Industrial"),
+    N_("Electronic"),
+    N_("Pop-Folk"),
+    N_("Eurodance"),
+    N_("Dream"),
+    N_("Southern rock"),
+    N_("Comedy"),
+    N_("Cult"),
+    N_("Gangsta"),
+    N_("Top 40"),
+    N_("Christian rap"),
+    N_("Pop/funk"),
+    N_("Jungle"),
+    N_("Native American"),
+    N_("Cabaret"),
+    N_("New wave"),
+    N_("Psychedelic"),
+    N_("Rave"),
+    N_("Showtunes"),
+    N_("Trailer"),
+    N_("Lo-Fi"),
+    N_("Tribal"),
+    N_("Acid punk"),
+    N_("Acid jazz"),
+    N_("Polka"),
+    N_("Retro"),
+    N_("Musical"),
+    N_("Rock & roll"),
+    N_("Hard rock")
+};
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index 592dd94..13b87f0 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -41,7 +41,7 @@
 
 #include "libmp4.h"
 #include "drms.h"
-#include "../../meta_engine/id3genres.h"
+#include "id3genres.h"
 
 /*****************************************************************************
  * Module descriptor
diff --git a/po/POTFILES.in b/po/POTFILES.in
index e2e1292..3fbb7d1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -484,6 +484,7 @@ modules/demux/mod.c
 modules/demux/mp4/drms.c
 modules/demux/mp4/drms.h
 modules/demux/mp4/drmstables.h
+modules/demux/mp4/id3genres.h
 modules/demux/mp4/libmp4.c
 modules/demux/mp4/libmp4.h
 modules/demux/mp4/mp4.c
@@ -910,7 +911,6 @@ modules/gui/skins2/x11/x11_tooltip.hpp
 modules/gui/skins2/x11/x11_window.cpp
 modules/gui/skins2/x11/x11_window.hpp
 modules/meta_engine/folder.c
-modules/meta_engine/id3genres.h
 modules/meta_engine/id3tag.c
 modules/meta_engine/taglib.cpp
 modules/misc/audioscrobbler.c



More information about the vlc-commits mailing list