mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
tests: Fix backgroundsource test
This commit is contained in:
parent
f32fdf13b7
commit
0102e69571
1 changed files with 9 additions and 3 deletions
|
@ -207,8 +207,9 @@ GST_START_TEST (test_test_source_in_layer)
|
|||
GST_END_TEST;
|
||||
|
||||
static gint
|
||||
find_composition_func (GstElement * element)
|
||||
find_composition_func (const GValue * velement)
|
||||
{
|
||||
GstElement *element = g_value_get_object (velement);
|
||||
GstElementFactory *fac = gst_element_get_factory (element);
|
||||
const gchar *name = gst_plugin_feature_get_name (GST_PLUGIN_FEATURE (fac));
|
||||
|
||||
|
@ -222,9 +223,14 @@ static GstElement *
|
|||
find_composition (GESTrack * track)
|
||||
{
|
||||
GstIterator *it = gst_bin_iterate_recurse (GST_BIN (track));
|
||||
GstElement *ret =
|
||||
gst_iterator_find_custom (it, (GCompareFunc) find_composition_func, NULL);
|
||||
GValue val = { 0, };
|
||||
GstElement *ret = NULL;
|
||||
|
||||
if (gst_iterator_find_custom (it, (GCompareFunc) find_composition_func, &val,
|
||||
NULL))
|
||||
ret = g_value_get_object (&val);
|
||||
|
||||
g_value_unset (&val);
|
||||
gst_iterator_free (it);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue