aboutsummaryrefslogtreecommitdiff
path: root/gst/autodetect/gstautodetect.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/autodetect/gstautodetect.c')
-rw-r--r--gst/autodetect/gstautodetect.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/gst/autodetect/gstautodetect.c b/gst/autodetect/gstautodetect.c
index 6970eaa5..59aab7e1 100644
--- a/gst/autodetect/gstautodetect.c
+++ b/gst/autodetect/gstautodetect.c
@@ -119,7 +119,7 @@ gst_auto_detect_clear_kid (GstAutoDetect * self)
}
static GstElement *
-gst_auto_detect_create_fake_element (GstAutoDetect * self)
+gst_auto_detect_create_fake_element_default (GstAutoDetect * self)
{
GstElement *fake;
gchar dummy_factory[10], dummy_name[20];
@@ -132,6 +132,20 @@ gst_auto_detect_create_fake_element (GstAutoDetect * self)
return fake;
}
+static GstElement *
+gst_auto_detect_create_fake_element (GstAutoDetect * self)
+{
+ GstAutoDetectClass *klass = GST_AUTO_DETECT_GET_CLASS (self);
+ GstElement *fake;
+
+ if (klass->create_fake_element)
+ fake = klass->create_fake_element (self);
+ else
+ fake = gst_auto_detect_create_fake_element_default (self);
+
+ return fake;
+}
+
static gboolean
gst_auto_detect_attach_ghost_pad (GstAutoDetect * self)
{