pipeline: Create it through a factory
authorThibault Saunier <thibault.saunier@collabora.com>
Mon, 9 Sep 2013 15:47:32 +0000 (12:47 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Mon, 9 Sep 2013 15:51:06 +0000 (12:51 -0300)
Making it possible to use it with GstValidate LD_PRELOAD feature

ges/ges-pipeline.c
ges/ges.c

index 1196058..a6d84fd 100644 (file)
@@ -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)                   \
index fa1ae20..5d0e57b 100644 (file)
--- 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;