def _create_pipeline(self, timeline):
self.pipeline = GES.Pipeline()
- self.pipeline.add_timeline(timeline)
+ self.pipeline.set_timeline(timeline)
bus = self.pipeline.get_bus()
bus.add_signal_watch()
bus.connect("message", self.bus_message_cb)
<TITLE>GESPipeline</TITLE>
GESPipeline
ges_pipeline_new
-ges_pipeline_add_timeline
+ges_pipeline_set_timeline
ges_pipeline_set_mode
ges_pipeline_set_render_settings
ges_pipeline_preview_get_audio_sink
value);
break;
case PROP_TIMELINE:
- ges_pipeline_add_timeline (GES_PIPELINE (object),
+ ges_pipeline_set_timeline (GES_PIPELINE (object),
g_value_get_object (value));
break;
case PROP_MODE:
* GESPipeline:timeline:
*
* Timeline to use in this pipeline. See also
- * ges_pipeline_add_timeline() for more info.
+ * ges_pipeline_set_timeline() for more info.
*/
properties[PROP_TIMELINE] = g_param_spec_object ("timeline", "Timeline",
"Timeline to use in this pipeline. See also "
- "ges_pipeline_add_timeline() for more info.",
+ "ges_pipeline_set_timeline() for more info.",
GES_TYPE_TIMELINE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
g_object_class_install_property (object_class, PROP_TIMELINE,
properties[PROP_TIMELINE]);
}
/**
- * ges_pipeline_add_timeline:
+ * ges_pipeline_set_timeline:
* @pipeline: a #GESPipeline
* @timeline: the #GESTimeline to set on the @pipeline.
*
* else FALSE.
*/
gboolean
-ges_pipeline_add_timeline (GESPipeline * pipeline, GESTimeline * timeline)
+ges_pipeline_set_timeline (GESPipeline * pipeline, GESTimeline * timeline)
{
g_return_val_if_fail (GES_IS_PIPELINE (pipeline), FALSE);
g_return_val_if_fail (GES_IS_TIMELINE (timeline), FALSE);
GESPipeline* ges_pipeline_new (void);
-gboolean ges_pipeline_add_timeline (GESPipeline * pipeline,
+gboolean ges_pipeline_set_timeline (GESPipeline * pipeline,
GESTimeline * timeline);
gboolean ges_pipeline_set_render_settings (GESPipeline *pipeline,
gst_bus_add_watch (bus, my_bus_callback, &ret);
gst_object_unref (bus);
- ges_pipeline_add_timeline (pipeline, timeline);
+ ges_pipeline_set_timeline (pipeline, timeline);
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
gst_element_get_state (GST_ELEMENT (pipeline), NULL, NULL, -1);
GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS (GST_BIN (pipeline),
GESPipeline *pipeline = ges_pipeline_new ();
- fail_unless (ges_pipeline_add_timeline (pipeline, timeline));
+ fail_unless (ges_pipeline_set_timeline (pipeline, timeline));
bus = gst_element_get_bus (GST_ELEMENT (pipeline));
fail_if (gst_element_set_state (GST_ELEMENT (pipeline),
GESPipeline *pipeline;
pipeline = ges_pipeline_new ();
- fail_unless (ges_pipeline_add_timeline (pipeline, timeline));
+ fail_unless (ges_pipeline_set_timeline (pipeline, timeline));
g_object_set (pipeline, "audio-sink", gst_element_factory_make ("fakesink",
"test-audiofakesink"), "video-sink",
gst_bus_add_watch (bus, (GstBusFunc) my_bus_callback, loop);
gst_object_unref (bus);
- ges_pipeline_add_timeline (pipeline, timeline);
+ ges_pipeline_set_timeline (pipeline, timeline);
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
gst_element_get_state (GST_ELEMENT (pipeline), NULL, NULL, -1);
pipeline = ges_pipeline_new ();
/* Add the timeline to that pipeline */
- if (!ges_pipeline_add_timeline (pipeline, timeline))
+ if (!ges_pipeline_set_timeline (pipeline, timeline))
return -1;
mainloop = g_main_loop_new (NULL, FALSE);
bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
mainloop = g_main_loop_new (NULL, FALSE);
- ges_pipeline_add_timeline (pipeline, timeline);
+ ges_pipeline_set_timeline (pipeline, timeline);
ges_pipeline_set_mode (pipeline, TIMELINE_MODE_PREVIEW_VIDEO);
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
gst_bus_add_signal_watch (bus);
if (!(ret->pipeline = ges_pipeline_new ()))
goto fail;
- if (!ges_pipeline_add_timeline (ret->pipeline, ret->timeline))
+ if (!ges_pipeline_set_timeline (ret->pipeline, ret->timeline))
goto fail;
if (!(create_ui (ret)))
ges_pipeline_set_mode (pipeline, TIMELINE_MODE_PREVIEW_VIDEO);
timeline = ges_timeline_new ();
- ges_pipeline_add_timeline (pipeline, timeline);
+ ges_pipeline_set_timeline (pipeline, timeline);
trackv = GES_TRACK (ges_video_track_new ());
ges_timeline_add_track (timeline, trackv);
!ges_timeline_add_layer (timeline, layer2) ||
!ges_timeline_add_track (timeline, tracka) ||
!ges_timeline_add_track (timeline, trackv) ||
- !ges_pipeline_add_timeline (pipeline, timeline))
+ !ges_pipeline_set_timeline (pipeline, timeline))
return -1;
if (1) {
pipeline = ges_pipeline_new ();
/* Add the timeline to that pipeline */
- if (!ges_pipeline_add_timeline (pipeline, timeline))
+ if (!ges_pipeline_set_timeline (pipeline, timeline))
return -1;
/* The following is standard usage of a GStreamer pipeline (note how you haven't
pipeline = ges_pipeline_new ();
/* Add the timeline to that pipeline */
- if (!ges_pipeline_add_timeline (pipeline, timeline))
+ if (!ges_pipeline_set_timeline (pipeline, timeline))
return -1;
/* The following is standard usage of a GStreamer pipeline (note how you
pipeline = ges_pipeline_new ();
/* Add the timeline to that pipeline */
- if (!ges_pipeline_add_timeline (pipeline, timeline))
+ if (!ges_pipeline_set_timeline (pipeline, timeline))
return -1;
/* The following is standard usage of a GStreamer pipeline (note how you haven't
pipeline = ges_pipeline_new ();
/* Add the timeline to that pipeline */
- if (!ges_pipeline_add_timeline (pipeline, timeline))
+ if (!ges_pipeline_set_timeline (pipeline, timeline))
return -1;
ges_pipeline_set_mode (pipeline, TIMELINE_MODE_PREVIEW_VIDEO);
timeline = ges_timeline_new ();
- ges_pipeline_add_timeline (pipeline, timeline);
+ ges_pipeline_set_timeline (pipeline, timeline);
trackv = GES_TRACK (ges_video_track_new ());
ges_timeline_add_track (timeline, trackv);
pipeline = ges_pipeline_new ();
- if (!ges_pipeline_add_timeline (pipeline, timeline))
+ if (!ges_pipeline_set_timeline (pipeline, timeline))
return NULL;
return pipeline;
ges_pipeline_set_mode (pipeline, TIMELINE_MODE_PREVIEW_VIDEO);
timeline = ges_timeline_new ();
- ges_pipeline_add_timeline (pipeline, timeline);
+ ges_pipeline_set_timeline (pipeline, timeline);
trackv = GES_TRACK (ges_video_track_new ());
ges_timeline_add_track (timeline, trackv);
pipeline = ges_pipeline_new ();
/* Add the timeline to that pipeline */
- if (!ges_pipeline_add_timeline (pipeline, timeline))
+ if (!ges_pipeline_set_timeline (pipeline, timeline))
goto failure;
*ret_timeline = timeline;