pipeline: doc: Add a note about trying to render before setting rendering settings
authorThibault Saunier <tsaunier@igalia.com>
Mon, 15 Jun 2020 17:09:39 +0000 (13:09 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Tue, 16 Jun 2020 19:49:41 +0000 (15:49 -0400)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/189>

ges/ges-pipeline.c

index b4c56f6..19fc004 100644 (file)
@@ -1086,7 +1086,7 @@ ges_pipeline_set_render_settings (GESPipeline * pipeline,
   CHECK_THREAD (pipeline);
 
   /*  FIXME Properly handle multi track, for now GESPipeline
-   *  only hanles single track per type, so we should just set the
+   *  only handles single track per type, so we should just set the
    *  presence to 1.
    */
   if (GST_IS_ENCODING_CONTAINER_PROFILE (profile)) {
@@ -1179,9 +1179,14 @@ ges_pipeline_get_mode (GESPipeline * pipeline)
  *
  * Sets the #GESPipeline:mode of the pipeline.
  *
- * Note that the pipeline will be set to #GST_STATE_NULL during this call
- * to perform the necessary changes. You will need to set the state again
- * yourself after calling this.
+ * Note that the pipeline will be set to #GST_STATE_NULL during this call to
+ * perform the necessary changes. You will need to set the state again yourself
+ * after calling this.
+ *
+ * > **NOTE**: [Rendering settings](ges_pipeline_set_render_settings) need to be
+ * > set before setting @mode to #GES_PIPELINE_MODE_RENDER or
+ * > #GES_PIPELINE_MODE_SMART_RENDER, the call to this method will fail
+ * > otherwise.
  *
  * Returns: %TRUE if the mode of @pipeline was successfully set to @mode.
  **/