mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 19:55:32 +00:00
audiocdsrc: remove some probing-related vfuncs
GstPropertyProbe was removed, so these aren't actually used and we probably want something different for the new API.
This commit is contained in:
parent
6a85353a92
commit
62e5a67376
2 changed files with 11 additions and 2 deletions
|
@ -410,7 +410,9 @@ static void
|
|||
gst_audio_cd_src_get_property (GObject * object, guint prop_id,
|
||||
GValue * value, GParamSpec * pspec)
|
||||
{
|
||||
#if 0
|
||||
GstAudioCdSrcClass *klass = GST_AUDIO_CD_SRC_GET_CLASS (object);
|
||||
#endif
|
||||
GstAudioCdSrc *src = GST_AUDIO_CD_SRC (object);
|
||||
|
||||
GST_OBJECT_LOCK (src);
|
||||
|
@ -420,6 +422,7 @@ gst_audio_cd_src_get_property (GObject * object, guint prop_id,
|
|||
g_value_set_enum (value, src->priv->mode);
|
||||
break;
|
||||
case ARG_DEVICE:{
|
||||
#if 0
|
||||
if (src->priv->device == NULL && klass->get_default_device != NULL) {
|
||||
gchar *d = klass->get_default_device (src);
|
||||
|
||||
|
@ -429,6 +432,7 @@ gst_audio_cd_src_get_property (GObject * object, guint prop_id,
|
|||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (src->priv->device == NULL)
|
||||
g_value_set_string (value, DEFAULT_DEVICE);
|
||||
else
|
||||
|
@ -1464,9 +1468,12 @@ gst_audio_cd_src_start (GstBaseSrc * basesrc)
|
|||
|
||||
if (src->priv->device != NULL) {
|
||||
device = g_strdup (src->priv->device);
|
||||
} else if (klass->get_default_device != NULL) {
|
||||
}
|
||||
#if 0
|
||||
else if (klass->get_default_device != NULL) {
|
||||
device = klass->get_default_device (src);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (device == NULL)
|
||||
device = g_strdup (DEFAULT_DEVICE);
|
||||
|
|
|
@ -109,15 +109,17 @@ struct _GstAudioCdSrcClass {
|
|||
/* read one sector (LBA) */
|
||||
GstBuffer * (*read_sector) (GstAudioCdSrc *src, gint sector);
|
||||
|
||||
#if 0
|
||||
/* return default device or NULL (optional) */
|
||||
gchar * (*get_default_device) (GstAudioCdSrc *src);
|
||||
|
||||
/* return NULL-terminated string array of CD devices, or NULL (optional) */
|
||||
/* FIXME 0.11: reconsider for new probing/device discovery API, remove if in doubt */
|
||||
gchar ** (*probe_devices) (GstAudioCdSrc *src);
|
||||
#endif
|
||||
|
||||
/*< private >*/
|
||||
gpointer _gst_reserved[GST_PADDING];
|
||||
gpointer _gst_reserved[GST_PADDING_LARGE];
|
||||
};
|
||||
|
||||
GType gst_audio_cd_src_get_type (void);
|
||||
|
|
Loading…
Reference in a new issue