ARG_TOC_BIAS
};
-#define GstIndex gpointer
-
struct _GstAudioCdSrcPrivate
{
GstAudioCdSrcMode mode;
guint32 discid; /* cddb disc id (for unit test) */
gchar mb_discid[32]; /* musicbrainz discid */
+#if 0
GstIndex *index;
gint index_id;
+#endif
gint toc_offset;
gboolean toc_bias;
GstBuffer ** buf);
static gboolean gst_audio_cd_src_is_seekable (GstBaseSrc * basesrc);
static void gst_audio_cd_src_update_duration (GstAudioCdSrc * src);
+#if 0
static void gst_audio_cd_src_set_index (GstElement * src, GstIndex * index);
static GstIndex *gst_audio_cd_src_get_index (GstElement * src);
+#endif
#define gst_audio_cd_src_parent_class parent_class
G_DEFINE_TYPE_WITH_CODE (GstAudioCdSrc, gst_audio_cd_src, GST_TYPE_PUSH_SRC,
gst_element_class_add_pad_template (element_class,
gst_static_pad_template_get (&gst_audio_cd_src_src_template));
+#if 0
element_class->set_index = GST_DEBUG_FUNCPTR (gst_audio_cd_src_set_index);
element_class->get_index = GST_DEBUG_FUNCPTR (gst_audio_cd_src_get_index);
+#endif
basesrc_class->start = GST_DEBUG_FUNCPTR (gst_audio_cd_src_start);
basesrc_class->stop = GST_DEBUG_FUNCPTR (gst_audio_cd_src_stop);
g_free (cddasrc->priv->uri);
g_free (cddasrc->priv->device);
+#if 0
if (cddasrc->priv->index)
gst_object_unref (cddasrc->priv->index);
+#endif
G_OBJECT_CLASS (parent_class)->finalize (obj);
}
GST_DEBUG ("src->tags = %" GST_PTR_FORMAT, src->tags);
}
+#if 0
static void
gst_audio_cd_src_add_index_associations (GstAudioCdSrc * src)
{
return index;
}
+#endif
static gint
gst_audio_cd_src_track_sort_func (gconstpointer a, gconstpointer b,
gst_audio_cd_src_add_tags (src);
+#if 0
if (src->priv->index && GST_INDEX_IS_WRITABLE (src->priv->index))
gst_audio_cd_src_add_index_associations (src);
+#endif
src->priv->cur_track = 0;
src->priv->prev_track = -1;