summaryrefslogtreecommitdiff
path: root/gst/autodetect/gstautovideosrc.h
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2014-02-19 21:55:52 +0100
committerStefan Sauer <ensonic@users.sf.net>2014-02-20 21:28:43 +0100
commitbf6a2f9afdf6890940eb8637dd1c3ffd574f80db (patch)
treebb20c0c6eb67f0e9001ffd302d405b56b27d7307 /gst/autodetect/gstautovideosrc.h
parent62f5a274168889142b35472b14173b6c1f4bce6f (diff)
autodetect: use a common baseclass
This makes the actual elements super simple. We're using the ELEMENT_FLAG to configure source/sink and a string for the Audio/Video type.
Diffstat (limited to 'gst/autodetect/gstautovideosrc.h')
-rw-r--r--gst/autodetect/gstautovideosrc.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/gst/autodetect/gstautovideosrc.h b/gst/autodetect/gstautovideosrc.h
index ec5d4fc8ac..e76cc7240f 100644
--- a/gst/autodetect/gstautovideosrc.h
+++ b/gst/autodetect/gstautovideosrc.h
@@ -22,6 +22,7 @@
#define __GST_AUTO_VIDEO_SRC_H__
#include <gst/gst.h>
+#include "gstautodetect.h"
G_BEGIN_DECLS
@@ -39,16 +40,11 @@ G_BEGIN_DECLS
(G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_AUTO_VIDEO_SRC))
typedef struct _GstAutoVideoSrc {
- GstBin parent;
-
- /* explicit pointers to stuff used */
- GstPad *pad;
- GstElement *kid;
- GstCaps *filter_caps;
+ GstAutoDetect parent;
} GstAutoVideoSrc;
typedef struct _GstAutoVideoSrcClass {
- GstBinClass parent_class;
+ GstAutoDetectClass parent_class;
} GstAutoVideoSrcClass;
GType gst_auto_video_src_get_type (void);