summaryrefslogtreecommitdiff
path: root/gst/debugutils
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-04-19 20:58:55 -0300
committerThibault Saunier <tsaunier@igalia.com>2018-04-19 21:09:14 -0300
commit5bc368124a821e8754f7948669194edd81c6b47d (patch)
treeb6ff98ea108c2561de4b13cc75155affaa007ac5 /gst/debugutils
parent4984af5917b343ec65270ed3e673228de1b70fa7 (diff)
downloadgstreamer-plugins-bad-5bc368124a821e8754f7948669194edd81c6b47d.tar.gz
testsrcbin: Do not use G_DECLARE_ as it requires GLib 2.44
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=795382
Diffstat (limited to 'gst/debugutils')
-rw-r--r--gst/debugutils/gsttestsrcbin.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/gst/debugutils/gsttestsrcbin.c b/gst/debugutils/gsttestsrcbin.c
index 0e1edb1a5..76672a555 100644
--- a/gst/debugutils/gsttestsrcbin.c
+++ b/gst/debugutils/gsttestsrcbin.c
@@ -52,8 +52,20 @@ static GstStaticPadTemplate audio_src_template =
GST_PAD_SOMETIMES,
GST_STATIC_CAPS ("audio/x-raw(ANY);"));
-G_DECLARE_FINAL_TYPE (GstTestSrcBin, gst_test_src_bin, GST, TEST_SRC_BIN,
- GstBin);
+#define GST_TYPE_TEST_SRC_BIN gst_test_src_bin_get_type()
+#define GST_TEST_SRC_BIN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GST_TYPE_TEST_SRC_BIN, GstTestSrcBin))
+
+typedef struct _GstTestSrcBin GstTestSrcBin;
+typedef struct _GstTestSrcBinClass GstTestSrcBinClass;
+
+/* *INDENT-OFF* */
+GType gst_test_src_bin_get_type (void) G_GNUC_CONST;
+/* *INDENT-ON* */
+
+struct _GstTestSrcBinClass
+{
+ GstBinClass parent_class;
+};
struct _GstTestSrcBin
{