pipeline: Create it through a factory

Making it possible to use it with GstValidate LD_PRELOAD feature
This commit is contained in:
Thibault Saunier 2013-09-09 12:47:32 -03:00
parent 0d0fc767ee
commit 0daf523dfd
2 changed files with 2 additions and 1 deletions

View 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) \

View file

@ -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;