diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-05-24 18:27:10 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2011-05-24 18:27:10 +0200 |
commit | f612f54a40d454409b957866501982ffb8674ae6 (patch) | |
tree | dcd661406a93156cd753aaf07e2f1623dca304e2 /gst/autodetect | |
parent | d89790d5451c523bb23bcb144af3371fd6217ec8 (diff) |
autodetect: port to new API
Diffstat (limited to 'gst/autodetect')
-rw-r--r-- | gst/autodetect/gstautoaudiosink.c | 4 | ||||
-rw-r--r-- | gst/autodetect/gstautoaudiosrc.c | 4 | ||||
-rw-r--r-- | gst/autodetect/gstautovideosink.c | 4 | ||||
-rw-r--r-- | gst/autodetect/gstautovideosrc.c | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/gst/autodetect/gstautoaudiosink.c b/gst/autodetect/gstautoaudiosink.c index f15691ea0..96e75b7d6 100644 --- a/gst/autodetect/gstautoaudiosink.c +++ b/gst/autodetect/gstautoaudiosink.c @@ -214,7 +214,7 @@ gst_auto_audio_sink_create_element_with_pretty_name (GstAutoAudioSink * sink, GstElement *element; gchar *name, *marker; - marker = g_strdup (GST_PLUGIN_FEATURE (factory)->name); + marker = g_strdup (GST_OBJECT_NAME (factory)); if (g_str_has_suffix (marker, "sink")) marker[strlen (marker) - 4] = '\0'; if (g_str_has_prefix (marker, "gst")) @@ -256,7 +256,7 @@ gst_auto_audio_sink_find_best (GstAutoAudioSink * sink) if ((el = gst_auto_audio_sink_create_element_with_pretty_name (sink, f))) { GstStateChangeReturn ret; - GST_DEBUG_OBJECT (sink, "Testing %s", GST_PLUGIN_FEATURE (f)->name); + GST_DEBUG_OBJECT (sink, "Testing %s", GST_OBJECT_NAME (f)); /* If autoaudiosink has been provided with filter caps, * accept only sinks that match with the filter caps */ diff --git a/gst/autodetect/gstautoaudiosrc.c b/gst/autodetect/gstautoaudiosrc.c index 698213baf..ca7cb78dd 100644 --- a/gst/autodetect/gstautoaudiosrc.c +++ b/gst/autodetect/gstautoaudiosrc.c @@ -217,7 +217,7 @@ gst_auto_audio_src_create_element_with_pretty_name (GstAutoAudioSrc * src, GstElement *element; gchar *name, *marker; - marker = g_strdup (GST_PLUGIN_FEATURE (factory)->name); + marker = g_strdup (GST_OBJECT_NAME (factory)); if (g_str_has_suffix (marker, "src")) marker[strlen (marker) - 4] = '\0'; if (g_str_has_prefix (marker, "gst")) @@ -259,7 +259,7 @@ gst_auto_audio_src_find_best (GstAutoAudioSrc * src) if ((el = gst_auto_audio_src_create_element_with_pretty_name (src, f))) { GstStateChangeReturn ret; - GST_DEBUG_OBJECT (src, "Testing %s", GST_PLUGIN_FEATURE (f)->name); + GST_DEBUG_OBJECT (src, "Testing %s", GST_OBJECT_NAME (f)); /* If autoAudioSrc has been provided with filter caps, * accept only sources that match with the filter caps */ diff --git a/gst/autodetect/gstautovideosink.c b/gst/autodetect/gstautovideosink.c index 16e2c93da..1087c84c4 100644 --- a/gst/autodetect/gstautovideosink.c +++ b/gst/autodetect/gstautovideosink.c @@ -213,7 +213,7 @@ gst_auto_video_sink_create_element_with_pretty_name (GstAutoVideoSink * sink, GstElement *element; gchar *name, *marker; - marker = g_strdup (GST_PLUGIN_FEATURE (factory)->name); + marker = g_strdup (GST_OBJECT_NAME (factory)); if (g_str_has_suffix (marker, "sink")) marker[strlen (marker) - 4] = '\0'; if (g_str_has_prefix (marker, "gst")) @@ -252,7 +252,7 @@ gst_auto_video_sink_find_best (GstAutoVideoSink * sink) if ((el = gst_auto_video_sink_create_element_with_pretty_name (sink, f))) { GstStateChangeReturn ret; - GST_DEBUG_OBJECT (sink, "Testing %s", GST_PLUGIN_FEATURE (f)->name); + GST_DEBUG_OBJECT (sink, "Testing %s", GST_OBJECT_NAME (f)); /* If autovideosink has been provided with filter caps, * accept only sinks that match with the filter caps */ diff --git a/gst/autodetect/gstautovideosrc.c b/gst/autodetect/gstautovideosrc.c index 4123485b3..c9bc0b5b0 100644 --- a/gst/autodetect/gstautovideosrc.c +++ b/gst/autodetect/gstautovideosrc.c @@ -216,7 +216,7 @@ gst_auto_video_src_create_element_with_pretty_name (GstAutoVideoSrc * src, GstElement *element; gchar *name, *marker; - marker = g_strdup (GST_PLUGIN_FEATURE (factory)->name); + marker = g_strdup (GST_OBJECT_NAME (factory)); if (g_str_has_suffix (marker, "src")) marker[strlen (marker) - 4] = '\0'; if (g_str_has_prefix (marker, "gst")) @@ -255,7 +255,7 @@ gst_auto_video_src_find_best (GstAutoVideoSrc * src) if ((el = gst_auto_video_src_create_element_with_pretty_name (src, f))) { GstStateChangeReturn ret; - GST_DEBUG_OBJECT (src, "Testing %s", GST_PLUGIN_FEATURE (f)->name); + GST_DEBUG_OBJECT (src, "Testing %s", GST_OBJECT_NAME (f)); /* If AutoVideoSrc has been provided with filter caps, * accept only sources that match with the filter caps */ |