From: Thibault Saunier Date: Mon, 9 Sep 2013 15:47:32 +0000 (-0300) Subject: pipeline: Create it through a factory X-Git-Tag: 1.19.3~493^2~1713 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0daf523dfdeff2619f1e8b982879c8de230fb7cb;p=platform%2Fupstream%2Fgstreamer.git pipeline: Create it through a factory Making it possible to use it with GstValidate LD_PRELOAD feature --- diff --git a/ges/ges-pipeline.c b/ges/ges-pipeline.c index 1196058..a6d84fd 100644 --- a/ges/ges-pipeline.c +++ b/ges/ges-pipeline.c @@ -337,7 +337,7 @@ no_encodebin: GESPipeline * ges_pipeline_new (void) { - return g_object_new (GES_TYPE_TIMELINE_PIPELINE, NULL); + return GES_PIPELINE (gst_element_factory_make ("gespipeline", NULL)); } #define TRACK_COMPATIBLE_PROFILE(tracktype, profile) \ diff --git a/ges/ges.c b/ges/ges.c index fa1ae20..5d0e57b 100644 --- a/ges/ges.c +++ b/ges/ges.c @@ -100,6 +100,7 @@ ges_init (void) gst_element_register (NULL, "framepositionner", 0, GST_TYPE_FRAME_POSITIONNER); + gst_element_register (NULL, "gespipeline", 0, GES_TYPE_PIPELINE); /* TODO: user-defined types? */ ges_initialized = TRUE;