Instead of waiting so that we can simply use a clocksync element as
filter, otherwise we won't know the pipeline is live as it won't
return NO_PREROLL as one would expect in that case.
Adding it right away shouldn't create any issue, both ways are fine.
return pad;
}
- gst_bin_add_many (GST_BIN (self), convert, gst_object_ref (filter), NULL);
+ gst_bin_add_many (GST_BIN (self), convert, NULL);
convert_sink = gst_element_get_static_pad (convert, "sink");
g_assert (convert_sink);
goto bail_out;
}
GST_OBJECT_UNLOCK (filter);
+
+ gst_bin_add (GST_BIN (self), gst_object_ref (filter));
}
GST_OBJECT_LOCK (self);