summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog16
-rw-r--r--configure.ac16
-rw-r--r--docs/plugins/Makefile.am6
-rw-r--r--docs/plugins/gst-plugins-good-plugins-docs.sgml2
-rw-r--r--docs/plugins/gst-plugins-good-plugins-sections.txt8
-rw-r--r--ext/Makefile.am12
-rw-r--r--ext/taglib/Makefile.am10
-rw-r--r--ext/taglib/gstid3v2mux.h2
-rw-r--r--ext/taglib/gsttaglibmux.c3
-rw-r--r--ext/taglib/gsttaglibmux.h8
-rw-r--r--tests/check/Makefile.am9
-rw-r--r--tests/check/elements/id3v2mux.c6
12 files changed, 79 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index 775a1656..46af6603 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2006-05-01 Thomas Vander Stichele <thomas at apestaart dot org>
+
+ * docs/plugins/Makefile.am:
+ also check .cc files for gtk-doc markup
+ * configure.ac:
+ * docs/plugins/gst-plugins-good-plugins-docs.sgml:
+ * docs/plugins/gst-plugins-good-plugins-sections.txt:
+ * tests/check/Makefile.am:
+ * tests/check/elements/id3v2mux.c: (id3v2mux_suite), (main):
+ * ext/Makefile.am:
+ * ext/taglib/Makefile.am:
+ * ext/taglib/gstid3v2mux.h:
+ * ext/taglib/gsttaglibmux.c:
+ * ext/taglib/gsttaglibmux.h:
+ move taglib-based id3v2muxer to -good. Fixes #336110.
+
2006-04-29 Tim-Philipp Müller <tim at centricular dot net>
* gst/wavparse/gstwavparse.c: (gst_wavparse_stream_headers):
diff --git a/configure.ac b/configure.ac
index ede1f4eb..500c9910 100644
--- a/configure.ac
+++ b/configure.ac
@@ -651,6 +651,21 @@ GST_CHECK_FEATURE(SPEEX, [speex plug-in], speex, [
])
])
+dnl *** taglib ***
+translit(dnm, m, l) AM_CONDITIONAL(USE_TAGLIB, true)
+GST_CHECK_FEATURE(TAGLIB, [taglib ID3v2 tag writer], taglib, [
+ PKG_CHECK_MODULES(TAGLIB, taglib >= 1.4, HAVE_TAGLIB="yes", [
+ HAVE_TAGLIB="no"
+ AC_MSG_RESULT(no)
+ ])
+ AC_SUBST(TAGLIB_CFLAGS)
+ AC_SUBST(TAGLIB_LIBS)
+ if test "x$HAVE_CXX" != "xyes"; then
+ USE_TAGLIB=false
+ AC_MSG_NOTICE([Not building taglib plugin: no C++ compiler found])
+ fi
+])
+
dnl *** id3demux prefers to have zlib ***
translit(dnm, m, l) AM_CONDITIONAL(USE_ZLIB, true)
GST_CHECK_FEATURE(ZLIB, [zlib support for id3demux],, [
@@ -757,6 +772,7 @@ ext/libpng/Makefile
ext/raw1394/Makefile
ext/shout2/Makefile
ext/speex/Makefile
+ext/taglib/Makefile
sys/Makefile
sys/oss/Makefile
sys/sunaudio/Makefile
diff --git a/docs/plugins/Makefile.am b/docs/plugins/Makefile.am
index f07b1d41..d7aae37e 100644
--- a/docs/plugins/Makefile.am
+++ b/docs/plugins/Makefile.am
@@ -45,7 +45,7 @@ DOC_SOURCE_DIR = $(top_srcdir)
SCAN_OPTIONS=
# Extra options to supply to gtkdoc-mkdb.
-MKDB_OPTIONS=--sgml-mode
+MKDB_OPTIONS=--sgml-mode --source-suffixes=c,h,cc
# Extra options to supply to gtkdoc-fixref.
# FIXME get the location of the installed gstreamer docs
@@ -53,7 +53,7 @@ MKDB_OPTIONS=--sgml-mode
# Used for dependencies.
HFILE_GLOB=$(DOC_SOURCE_DIR)/*/*/*.h
-CFILE_GLOB=$(DOC_SOURCE_DIR)/*/*/*.c
+CFILE_GLOB=$(DOC_SOURCE_DIR)/*/*/*.c $(DOC_SOURCE_DIR)/*/*/*.cc
# this is a wingo addition
# thomasvs: another nice wingo addition would be an explanation on why
@@ -94,6 +94,8 @@ EXTRA_HFILES = \
$(top_srcdir)/ext/jpeg/gstjpegenc.h \
$(top_srcdir)/ext/jpeg/gstsmokedec.h \
$(top_srcdir)/ext/jpeg/gstsmokeenc.h \
+ $(top_srcdir)/ext/taglib/gsttaglibmux.h \
+ $(top_srcdir)/ext/taglib/gstid3v2mux.h \
$(top_srcdir)/gst/multipart/multipartmux.c \
$(top_srcdir)/gst/multipart/multipartdemux.c \
$(top_srcdir)/gst/udp/gstudpsrc.h \
diff --git a/docs/plugins/gst-plugins-good-plugins-docs.sgml b/docs/plugins/gst-plugins-good-plugins-docs.sgml
index 1b866457..acdac9c5 100644
--- a/docs/plugins/gst-plugins-good-plugins-docs.sgml
+++ b/docs/plugins/gst-plugins-good-plugins-docs.sgml
@@ -26,6 +26,7 @@
<xi:include href="xml/element-halaudiosink.xml" />
<xi:include href="xml/element-halaudiosrc.xml" />
<xi:include href="xml/element-id3demux.xml" />
+ <xi:include href="xml/element-id3v2mux.xml" />
<xi:include href="xml/element-jpegdec.xml" />
<xi:include href="xml/element-jpegenc.xml" />
<xi:include href="xml/element-level.xml" />
@@ -82,6 +83,7 @@
<xi:include href="xml/plugin-shout2send.xml" />
<xi:include href="xml/plugin-smpte.xml" />
<xi:include href="xml/plugin-speex.xml" />
+ <xi:include href="xml/plugin-taglib.xml" />
<xi:include href="xml/plugin-udp.xml" />
<xi:include href="xml/plugin-videobox.xml" />
<xi:include href="xml/plugin-videobalance.xml" />
diff --git a/docs/plugins/gst-plugins-good-plugins-sections.txt b/docs/plugins/gst-plugins-good-plugins-sections.txt
index 8ca178e3..77157426 100644
--- a/docs/plugins/gst-plugins-good-plugins-sections.txt
+++ b/docs/plugins/gst-plugins-good-plugins-sections.txt
@@ -111,6 +111,14 @@ GstHalAudioSrcClass
</SECTION>
<SECTION>
+<FILE>element-id3v2mux</FILE>
+GstId3v2Mux
+<TITLE>id3v2mux</TITLE>
+<SUBSECTION Standard>
+GstId3v2MuxClass
+</SECTION>
+
+<SECTION>
<FILE>element-jpegdec</FILE>
GstJpegDec
GstJpegDecErrorMgr
diff --git a/ext/Makefile.am b/ext/Makefile.am
index 17cf815f..ec470ba2 100644
--- a/ext/Makefile.am
+++ b/ext/Makefile.am
@@ -112,6 +112,12 @@ else
SPEEX_DIR =
endif
+if USE_TAGLIB
+TAGLIB_DIR = taglib
+else
+TAGLIB_DIR =
+endif
+
SUBDIRS = \
$(AALIB_DIR) \
$(ANNODEX_DIR) \
@@ -131,7 +137,8 @@ SUBDIRS = \
$(LIBPNG_DIR) \
$(MIKMOD_DIR) \
$(SHOUT2_DIR) \
- $(SPEEX_DIR)
+ $(SPEEX_DIR) \
+ $(TAGLIB_DIR)
DIST_SUBDIRS = \
aalib \
@@ -150,4 +157,5 @@ DIST_SUBDIRS = \
libpng \
raw1394 \
shout2 \
- speex
+ speex \
+ taglib
diff --git a/ext/taglib/Makefile.am b/ext/taglib/Makefile.am
index 0b608f3d..e1ffd5cd 100644
--- a/ext/taglib/Makefile.am
+++ b/ext/taglib/Makefile.am
@@ -1,6 +1,10 @@
plugin_LTLIBRARIES = libgsttaglib.la
-libgsttaglib_la_SOURCES = gsttaglib.cc gstid3v2mux.cc
+libgsttaglib_la_SOURCES = gsttaglibmux.c gstid3v2mux.cc
+libgsttaglib_la_CFLAGS = \
+ $(GST_CFLAGS) \
+ $(GST_PLUGINS_BASE_CFLAGS) \
+ $(TAGLIB_CFLAGS)
libgsttaglib_la_CXXFLAGS = \
$(GST_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
@@ -11,6 +15,4 @@ libgsttaglib_la_LIBADD = \
$(TAGLIB_LIBS)
libgsttaglib_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
-noinst_HEADERS = gsttaglib.h gstid3v2mux.h
-
-#EXTRA_DIST = README
+noinst_HEADERS = gsttaglibmux.h gstid3v2mux.h
diff --git a/ext/taglib/gstid3v2mux.h b/ext/taglib/gstid3v2mux.h
index 855b2296..f3d3124e 100644
--- a/ext/taglib/gstid3v2mux.h
+++ b/ext/taglib/gstid3v2mux.h
@@ -21,7 +21,7 @@
#ifndef GST_ID3V2_MUX_H
#define GST_ID3V2_MUX_H
-#include "gsttaglib.h"
+#include "gsttaglibmux.h"
G_BEGIN_DECLS
diff --git a/ext/taglib/gsttaglibmux.c b/ext/taglib/gsttaglibmux.c
index 35ec89fe..5224e6c1 100644
--- a/ext/taglib/gsttaglibmux.c
+++ b/ext/taglib/gsttaglibmux.c
@@ -25,7 +25,8 @@
#include <string.h>
#include <gst/gsttagsetter.h>
#include <gst/tag/tag.h>
-#include "gsttaglib.h"
+
+#include "gsttaglibmux.h"
GST_DEBUG_CATEGORY_STATIC (gst_tag_lib_mux_debug);
#define GST_CAT_DEFAULT gst_tag_lib_mux_debug
diff --git a/ext/taglib/gsttaglibmux.h b/ext/taglib/gsttaglibmux.h
index 5b91a93e..26c9de7b 100644
--- a/ext/taglib/gsttaglibmux.h
+++ b/ext/taglib/gsttaglibmux.h
@@ -18,8 +18,8 @@
* Boston, MA 02111-1307, USA.
*/
-#ifndef GST_TAG_LIB_H
-#define GST_TAG_LIB_H
+#ifndef GST_TAG_LIB_MUX_H
+#define GST_TAG_LIB_MUX_H
#include <gst/gst.h>
@@ -29,7 +29,7 @@ typedef struct _GstTagLibMux GstTagLibMux;
typedef struct _GstTagLibMuxClass GstTagLibMuxClass;
/* Definition of structure storing data for this element. */
-typedef struct _GstTagLibMux {
+struct _GstTagLibMux {
GstElement element;
GstPad *srcpad;
@@ -42,7 +42,7 @@ typedef struct _GstTagLibMux {
};
/* Standard definition defining a class for this element. */
-typedef struct _GstTagLibMuxClass {
+struct _GstTagLibMuxClass {
GstElementClass parent_class;
/* vfuncs */
diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am
index 39e386c9..d0d433b4 100644
--- a/tests/check/Makefile.am
+++ b/tests/check/Makefile.am
@@ -15,7 +15,11 @@ CLEANFILES = core.* test-registry.xml
clean-local: clean-local-check
-TESTS = $(check_PROGRAMS)
+if USE_TAGLIB
+check_taglib = elements/id3v2mux
+else
+check_taglib =
+endif
check_PROGRAMS = \
elements/avimux \
@@ -25,9 +29,10 @@ check_PROGRAMS = \
elements/cmmlenc \
elements/icydemux
+TESTS = $(check_PROGRAMS)
# these tests don't even pass
-noinst_PROGRAMS =
+noinst_PROGRAMS = $(check_taglib)
AM_CFLAGS = $(GST_OBJ_CFLAGS) $(GST_CHECK_CFLAGS) $(CHECK_CFLAGS)
LDADD = $(GST_OBJ_LIBS) $(GST_CHECK_LIBS) $(CHECK_LIBS)
diff --git a/tests/check/elements/id3v2mux.c b/tests/check/elements/id3v2mux.c
index fe753d5c..40b89741 100644
--- a/tests/check/elements/id3v2mux.c
+++ b/tests/check/elements/id3v2mux.c
@@ -397,9 +397,9 @@ GST_START_TEST (test_id3v2mux)
GST_END_TEST;
static Suite *
-tagid3v2mux_suite (void)
+id3v2mux_suite (void)
{
- Suite *s = suite_create ("tagid3v2mux");
+ Suite *s = suite_create ("id3v2mux");
TCase *tc_chain = tcase_create ("general");
suite_add_tcase (s, tc_chain);
@@ -413,7 +413,7 @@ main (int argc, char **argv)
{
int nf;
- Suite *s = tagid3v2mux_suite ();
+ Suite *s = id3v2mux_suite ();
SRunner *sr = srunner_create (s);
gst_check_init (&argc, &argv);