mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
streamsynchronizer: Create element with gst_element_factory_make()
Otherwise plugin_init() is not called and initialization is missing.
This commit is contained in:
parent
88acbd60cd
commit
fbe295f275
1 changed files with 1 additions and 3 deletions
|
@ -24,8 +24,6 @@
|
||||||
|
|
||||||
#define GLIB_DISABLE_DEPRECATION_WARNINGS
|
#define GLIB_DISABLE_DEPRECATION_WARNINGS
|
||||||
|
|
||||||
#include "../../../gst/playback/gststreamsynchronizer.c"
|
|
||||||
|
|
||||||
#undef GST_CAT_DEFAULT
|
#undef GST_CAT_DEFAULT
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
|
@ -192,7 +190,7 @@ GST_START_TEST (test_basic)
|
||||||
GstSegment segment;
|
GstSegment segment;
|
||||||
guint32 seqnum;
|
guint32 seqnum;
|
||||||
|
|
||||||
synchr = g_object_new (GST_TYPE_STREAM_SYNCHRONIZER, NULL);
|
synchr = gst_element_factory_make ("streamsynchronizer", NULL);
|
||||||
|
|
||||||
/* Get sinkpad/srcpad */
|
/* Get sinkpad/srcpad */
|
||||||
sinkpad = gst_element_get_request_pad (synchr, "sink_%u");
|
sinkpad = gst_element_get_request_pad (synchr, "sink_%u");
|
||||||
|
|
Loading…
Reference in a new issue