summaryrefslogtreecommitdiffstats
path: root/gst/apetag/gstapedemux.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-10-06 15:13:09 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-10-06 15:13:09 +0000
commit7480461b726043f904c4ea46c3323e75147c1972 (patch)
treedb64de1ead3617a882eefdebffca8b7aa763ae5f /gst/apetag/gstapedemux.c
parent7624f9149790a007c98b932ee895e67cd7deee78 (diff)
gst/apetag/: Port APE tag demuxer over to the new GstTagDemux in -base.
Original commit message from CVS: * gst/apetag/Makefile.am: * gst/apetag/gstapedemux.c: * gst/apetag/gstapedemux.h: * gst/apetag/gsttagdemux.c: * gst/apetag/gsttagdemux.h: Port APE tag demuxer over to the new GstTagDemux in -base.
Diffstat (limited to 'gst/apetag/gstapedemux.c')
-rw-r--r--gst/apetag/gstapedemux.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gst/apetag/gstapedemux.c b/gst/apetag/gstapedemux.c
index eaabd7a0..7adc2ccd 100644
--- a/gst/apetag/gstapedemux.c
+++ b/gst/apetag/gstapedemux.c
@@ -109,17 +109,19 @@ gst_ape_demux_class_init (GstApeDemuxClass * klass)
tagdemux_class->identify_tag = GST_DEBUG_FUNCPTR (gst_ape_demux_identify_tag);
tagdemux_class->parse_tag = GST_DEBUG_FUNCPTR (gst_ape_demux_parse_tag);
+
+ /* no need for a merge function, the default behaviour to prefer start
+ * tags (APEv2) over end tags (usually APEv1, but could theoretically also
+ * be APEv2) is fine */
+
+ tagdemux_class->min_start_size = 32;
+ tagdemux_class->min_end_size = 32;
}
static void
gst_ape_demux_init (GstApeDemux * apedemux, GstApeDemuxClass * gclass)
{
- GstTagDemux *tagdemux = GST_TAG_DEMUX (apedemux);
-
- tagdemux->min_start_size = 32;
- tagdemux->min_end_size = 32;
-
- tagdemux->prefer_start_tag = TRUE;
+ /* nothing to do here */
}
static const struct _GstApeDemuxTagTableEntry