summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-24 11:07:30 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-24 11:13:58 +0200
commit2521cc2f50620ef6bd9b55d7c227d19aeff6d476 (patch)
treec082097c66b3ebafd8d92be08cee9b405887abc5
parent3866316de9d90adb5aa1c2934ce88f3fe762090c (diff)
streamsynchronizer: Create element with gst_element_factory_make()
Otherwise plugin_init() is not called and initialization is missing.
-rw-r--r--tests/check/elements/streamsynchronizer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/check/elements/streamsynchronizer.c b/tests/check/elements/streamsynchronizer.c
index 6119d8932..5b18428f5 100644
--- a/tests/check/elements/streamsynchronizer.c
+++ b/tests/check/elements/streamsynchronizer.c
@@ -24,8 +24,6 @@
#define GLIB_DISABLE_DEPRECATION_WARNINGS
-#include "../../../gst/playback/gststreamsynchronizer.c"
-
#undef GST_CAT_DEFAULT
#include <gst/check/gstcheck.h>
@@ -192,7 +190,7 @@ GST_START_TEST (test_basic)
GstSegment segment;
guint32 seqnum;
- synchr = g_object_new (GST_TYPE_STREAM_SYNCHRONIZER, NULL);
+ synchr = gst_element_factory_make ("streamsynchronizer", NULL);
/* Get sinkpad/srcpad */
sinkpad = gst_element_get_request_pad (synchr, "sink_%u");