1 /* GStreamer Editing Services
3 * Copyright (C) <2012> Thibault Saunier <thibault.saunier@collabora.com>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 * SECTION: ges-project
22 * @short_description: A GESAsset that is used to manage projects
24 * The #GESProject is used to control a set of #GESAsset and is a
25 * #GESAsset with #GES_TYPE_TIMELINE as @extractable_type itself. That
26 * means that you can extract #GESTimeline from a project as followed:
29 * GESProject *project;
30 * GESTimeline *timeline;
32 * project = ges_project_new ("file:///path/to/a/valid/project/uri");
34 * // Here you can connect to the various signal to get more infos about
35 * // what is happening and recover from errors if possible
38 * timeline = ges_asset_extract (GES_ASSET (project));
41 * The #GESProject class offers a higher level API to handle #GESAsset-s.
42 * It lets you request new asset, and it informs you about new assets through
43 * a set of signals. Also it handles problem such as missing files/missing
44 * #GstElement and lets you try to recover from those.
47 #include "ges-internal.h"
49 /* TODO We should rely on both extractable_type and @id to identify
50 * a Asset, not only @id
52 G_DEFINE_TYPE (GESProject, ges_project, GES_TYPE_ASSET);
54 struct _GESProjectPrivate
57 GESAsset *formatter_asset;
63 GList *encoding_profiles;
66 typedef struct EmitLoadedInIdle
69 GESTimeline *timeline;
82 static guint _signals[LAST_SIGNAL] = { 0 };
84 static guint nb_projects = 0;
93 static GParamSpec *_properties[LAST_SIGNAL] = { 0 };
96 _emit_loaded_in_idle (EmitLoadedInIdle * data)
98 g_signal_emit (data->project, _signals[LOADED_SIGNAL], 0, data->timeline);
100 gst_object_unref (data->project);
101 gst_object_unref (data->timeline);
102 g_slice_free (EmitLoadedInIdle, data);
108 ges_project_add_formatter (GESProject * project, GESFormatter * formatter)
110 GESProjectPrivate *priv = GES_PROJECT (project)->priv;
112 ges_formatter_set_project (formatter, project);
113 priv->formatters = g_list_append (priv->formatters, formatter);
115 g_object_ref_sink (formatter);
119 ges_project_remove_formatter (GESProject * project, GESFormatter * formatter)
122 GESProjectPrivate *priv = GES_PROJECT (project)->priv;
124 for (tmp = priv->formatters; tmp; tmp = tmp->next) {
125 if (tmp->data == formatter) {
126 gst_object_unref (formatter);
127 priv->formatters = g_list_remove_link (priv->formatters, tmp);
135 ges_project_set_uri (GESProject * project, const gchar * uri)
137 GESProjectPrivate *priv;
139 g_return_if_fail (GES_IS_PROJECT (project));
141 priv = project->priv;
143 GST_WARNING_OBJECT (project, "Trying to rest URI, this is prohibited");
148 if (uri == NULL || !gst_uri_is_valid (uri)) {
149 GST_LOG_OBJECT (project, "Invalid URI: %s", uri);
153 priv->uri = g_strdup (uri);
155 /* We use that URI as ID */
156 ges_asset_set_id (GES_ASSET (project), uri);
162 _load_project (GESProject * project, GESTimeline * timeline, GError ** error)
165 GESProjectPrivate *priv;
166 GESFormatter *formatter;
168 priv = GES_PROJECT (project)->priv;
170 if (priv->uri == NULL) {
171 EmitLoadedInIdle *data = g_slice_new (EmitLoadedInIdle);
173 GST_LOG_OBJECT (project, "%s, Loading an empty timeline %s"
174 " as no URI set yet", GST_OBJECT_NAME (timeline),
175 ges_asset_get_id (GES_ASSET (project)));
177 data->timeline = gst_object_ref (timeline);
178 data->project = gst_object_ref (project);
180 /* Make sure the signal is emitted after the functions ends */
181 g_idle_add ((GSourceFunc) _emit_loaded_in_idle, data);
185 if (priv->formatter_asset == NULL)
186 priv->formatter_asset = _find_formatter_asset_for_uri (priv->uri);
188 if (priv->formatter_asset == NULL)
191 formatter = GES_FORMATTER (ges_asset_extract (priv->formatter_asset, &lerr));
193 GST_WARNING_OBJECT (project, "Could not create the formatter: %s",
199 ges_project_add_formatter (GES_PROJECT (project), formatter);
200 ges_formatter_load_from_uri (formatter, timeline, priv->uri, &lerr);
202 GST_WARNING_OBJECT (project, "Could not load the timeline,"
203 " returning: %s", lerr->message);
211 g_propagate_error (error, lerr);
216 _uri_missing_accumulator (GSignalInvocationHint * ihint, GValue * return_accu,
217 const GValue * handler_return, gpointer data)
219 const gchar *ret = g_value_get_string (handler_return);
221 if (ret && gst_uri_is_valid (ret)) {
222 g_value_set_string (return_accu, ret);
229 /* GESAsset vmethod implementation */
230 static GESExtractable *
231 ges_project_extract (GESAsset * project, GError ** error)
233 GESTimeline *timeline = ges_timeline_new ();
235 if (_load_project (GES_PROJECT (project), timeline, error))
236 return GES_EXTRACTABLE (timeline);
238 gst_object_unref (timeline);
242 /* GObject vmethod implementation */
244 _dispose (GObject * object)
247 GESProjectPrivate *priv = GES_PROJECT (object)->priv;
250 g_hash_table_unref (priv->assets);
251 if (priv->formatter_asset)
252 gst_object_unref (priv->formatter_asset);
254 for (tmp = priv->formatters; tmp; tmp = tmp->next)
255 ges_project_remove_formatter (GES_PROJECT (object), tmp->data);;
257 G_OBJECT_CLASS (ges_project_parent_class)->dispose (object);
261 _finalize (GObject * object)
263 GESProjectPrivate *priv = GES_PROJECT (object)->priv;
270 _get_property (GESProject * project, guint property_id,
271 GValue * value, GParamSpec * pspec)
273 GESProjectPrivate *priv = project->priv;
275 switch (property_id) {
277 g_value_set_string (value, priv->uri);
280 G_OBJECT_WARN_INVALID_PROPERTY_ID (project, property_id, pspec);
285 _set_property (GESProject * project, guint property_id,
286 const GValue * value, GParamSpec * pspec)
288 switch (property_id) {
290 project->priv->uri = g_value_dup_string (value);
293 G_OBJECT_WARN_INVALID_PROPERTY_ID (project, property_id, pspec);
298 ges_project_class_init (GESProjectClass * klass)
300 GObjectClass *object_class = G_OBJECT_CLASS (klass);
302 g_type_class_add_private (klass, sizeof (GESProjectPrivate));
304 klass->asset_added = NULL;
305 klass->missing_uri = NULL;
306 klass->loading_error = NULL;
307 klass->asset_removed = NULL;
308 object_class->get_property = (GObjectGetPropertyFunc) _get_property;
309 object_class->set_property = (GObjectSetPropertyFunc) _set_property;
314 * The location of the project to use.
316 _properties[PROP_URI] = g_param_spec_string ("uri", "URI",
317 "uri of the project", NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
319 g_object_class_install_properties (object_class, PROP_LAST, _properties);
322 * GESProject::asset-added:
323 * @formatter: the #GESProject
324 * @asset: The #GESAsset that has been added to @project
326 _signals[ASSET_ADDED_SIGNAL] =
327 g_signal_new ("asset-added", G_TYPE_FROM_CLASS (klass),
328 G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GESProjectClass, asset_added),
329 NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1, GES_TYPE_ASSET);
332 * GESProject::asset-removed:
333 * @formatter: the #GESProject
334 * @asset: The #GESAsset that has been removed from @project
336 _signals[ASSET_REMOVED_SIGNAL] =
337 g_signal_new ("asset-removed", G_TYPE_FROM_CLASS (klass),
338 G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GESProjectClass, asset_removed),
339 NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE, 1, GES_TYPE_ASSET);
342 * GESProject::loaded:
343 * @project: the #GESProject that is done loading a project.
344 * @timeline: The #GESTimeline that complete loading
346 _signals[LOADED_SIGNAL] =
347 g_signal_new ("loaded", G_TYPE_FROM_CLASS (klass),
348 G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GESProjectClass, loaded),
349 NULL, NULL, g_cclosure_marshal_generic, G_TYPE_NONE,
350 1, GES_TYPE_TIMELINE);
353 * GESProject::missing-uri:
354 * @project: the #GESProject reporting that a file has moved
355 * @error: The error that happened
356 * @wrong_asset: The asset with the wrong ID, you should us it and its content
357 * only to find out what the new location is.
361 * source_moved_cb (GESProject *project, GError *error, const gchar *old_uri)
363 * return g_strdup ("file:///the/new/uri.ogg");
367 * main (int argc, gchar ** argv)
369 * GESTimeline *timeline;
370 * GESProject *project = ges_project_new ("file:///some/uri.xges");
372 * g_signal_connect (project, "missing-uri", source_moved_cb, NULL);
373 * timeline = ges_asset_extract (GES_ASSET (project));
377 * Returns: (transfer full) (allow-none): The new URI of @wrong_asset
379 _signals[MISSING_URI_SIGNAL] =
380 g_signal_new ("missing-uri", G_TYPE_FROM_CLASS (klass),
381 G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GESProjectClass, missing_uri),
382 _uri_missing_accumulator, NULL, g_cclosure_marshal_generic,
383 G_TYPE_STRING, 2, G_TYPE_ERROR, GES_TYPE_ASSET);
386 * GESProject::error-loading-asset:
387 * @project: the #GESProject on which a problem happend when creted a #GESAsset
388 * @error: The #GError defining the error that accured, might be %NULL
389 * @id: The @id of the asset that failed loading
390 * @extractable_type: The @extractable_type of the asset that
393 * Informs you that a #GESAsset could not be created. In case of
394 * missing GStreamer plugins, the error will be set to #GST_CORE_ERROR
395 * #GST_CORE_ERROR_MISSING_PLUGIN
397 _signals[ERROR_LOADING_ASSET] =
398 g_signal_new ("error-loading-asset", G_TYPE_FROM_CLASS (klass),
399 G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GESProjectClass, loading_error),
400 NULL, NULL, g_cclosure_marshal_generic,
401 G_TYPE_NONE, 3, G_TYPE_ERROR, G_TYPE_STRING, G_TYPE_GTYPE);
403 object_class->dispose = _dispose;
404 object_class->dispose = _finalize;
406 GES_ASSET_CLASS (klass)->extract = ges_project_extract;
410 ges_project_init (GESProject * project)
412 GESProjectPrivate *priv = project->priv =
413 G_TYPE_INSTANCE_GET_PRIVATE (project,
414 GES_TYPE_PROJECT, GESProjectPrivate);
417 priv->formatters = NULL;
418 priv->formatter_asset = NULL;
419 priv->encoding_profiles = NULL;
420 priv->assets = g_hash_table_new_full (g_str_hash, g_str_equal,
421 g_free, gst_object_unref);
425 ges_project_try_updating_id (GESProject * project, GESAsset * asset,
428 gchar *new_id = NULL;
430 g_return_val_if_fail (GES_IS_PROJECT (project), NULL);
431 g_return_val_if_fail (GES_IS_ASSET (asset), NULL);
432 g_return_val_if_fail (error, NULL);
434 GST_DEBUG_OBJECT (project, "Try to proxy %s", ges_asset_get_id (asset));
435 if (ges_asset_request_id_update (asset, &new_id, error) == FALSE) {
436 GST_DEBUG_OBJECT (project, "Type: %s can not be proxied for id: %s",
437 g_type_name (G_OBJECT_TYPE (asset)), ges_asset_get_id (asset));
443 g_signal_emit (project, _signals[MISSING_URI_SIGNAL], 0, error, asset,
447 if (ges_asset_set_proxy (asset, new_id))
457 new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
459 GError *error = NULL;
460 gchar *possible_id = NULL;
461 const gchar *id = ges_asset_get_id (source);
462 GESAsset *asset = ges_asset_request_finish (res, &error);
465 possible_id = ges_project_try_updating_id (project, source, error);
466 if (possible_id == NULL) {
467 g_signal_emit (project, _signals[ERROR_LOADING_ASSET], 0, error, id,
468 ges_asset_get_extractable_type (source));
472 ges_asset_request_async (ges_asset_get_extractable_type (source),
473 possible_id, NULL, (GAsyncReadyCallback) new_asset_cb, project);
475 g_free (possible_id);
479 ges_project_add_asset (project, asset);
481 gst_object_unref (asset);
485 * ges_project_set_loaded:
486 * @project: The #GESProject from which to emit the "project-loaded" signal
488 * Emits the "loaded" signal. This method should be called by sublasses when
489 * the project is fully loaded.
491 * Returns: %TRUE if the signale could be emitted %FALSE otherwize
494 ges_project_set_loaded (GESProject * project, GESFormatter * formatter)
496 GST_INFO_OBJECT (project, "Emit project loaded");
497 g_signal_emit (project, _signals[LOADED_SIGNAL], 0, formatter->timeline);
499 /* We are now done with that formatter */
500 ges_project_remove_formatter (project, formatter);
504 /**************************************
506 * API Implementation *
508 **************************************/
511 * ges_project_create_asset:
512 * @project: A #GESProject
513 * @id: The id of the asset to create and add to @project
514 * @extractable_type: The #GType of the asset to create
516 * Create and add a #GESAsset to @project. You should connect to the
517 * "asset-added" signal to get the asset when it finally gets added to
520 * Returns: %TRUE if the asset started to be added %FALSE it was already
524 ges_project_create_asset (GESProject * project, const gchar * id,
525 GType extractable_type)
527 g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
528 g_return_val_if_fail (g_type_is_a (extractable_type, GES_TYPE_EXTRACTABLE),
531 if (g_hash_table_lookup (project->priv->assets, id))
534 /* TODO Add a GCancellable somewhere in our API */
535 ges_asset_request_async (extractable_type, id, NULL,
536 (GAsyncReadyCallback) new_asset_cb, project);
542 * ges_project_add_asset:
543 * @project: A #GESProject
544 * @asset: (transfer none): A #GESAsset to add to @project
546 * Adds a #Asset to @project, the project will keep a reference on
549 * Returns: %TRUE if the asset could be added %FALSE it was already
553 ges_project_add_asset (GESProject * project, GESAsset * asset)
555 g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
557 if (g_hash_table_lookup (project->priv->assets, ges_asset_get_id (asset)))
560 g_hash_table_insert (project->priv->assets,
561 g_strdup (ges_asset_get_id (asset)), gst_object_ref (asset));
563 GST_DEBUG_OBJECT (project, "Asset added: %s", ges_asset_get_id (asset));
564 g_signal_emit (project, _signals[ASSET_ADDED_SIGNAL], 0, asset);
570 * ges_project_remove_asset:
571 * @project: A #GESProject
572 * @asset: (transfer none): A #GESAsset to remove from @project
574 * remove a @asset to from @project.
576 * Returns: %TRUE if the asset could be removed %FALSE otherwise
579 ges_project_remove_asset (GESProject * project, GESAsset * asset)
583 g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
585 ret = g_hash_table_remove (project->priv->assets, ges_asset_get_id (asset));
587 g_signal_emit (project, _signals[ASSET_REMOVED_SIGNAL], 0, asset);
593 * ges_project_get_asset:
594 * @project: A #GESProject
595 * @id: The id of the asset to retrieve
596 * @extractable_type: The extractable_type of the asset
597 * to retrieve from @object
599 * Returns: (transfer full) (allow-none): The #GESAsset with
600 * @id or %NULL if no asset with @id as an ID
603 ges_project_get_asset (GESProject * project, const gchar * id,
604 GType extractable_type)
608 g_return_val_if_fail (GES_IS_PROJECT (project), NULL);
609 g_return_val_if_fail (g_type_is_a (extractable_type, GES_TYPE_EXTRACTABLE),
612 asset = g_hash_table_lookup (project->priv->assets, id);
615 return gst_object_ref (asset);
621 * ges_project_list_assets:
622 * @project: A #GESProject
623 * @filter: Type of assets to list, #GES_TYPE_EXTRACTABLE will list
626 * List all @asset contained in @project filtering per extractable_type
627 * as defined by @filter. It copies the asset and thus will not be updated
630 * Returns: (transfer full) (element-type GESAsset): The list of
631 * #GESAsset the object contains
634 ges_project_list_assets (GESProject * project, GType filter)
640 g_return_val_if_fail (GES_IS_PROJECT (project), NULL);
642 g_hash_table_iter_init (&iter, project->priv->assets);
643 while (g_hash_table_iter_next (&iter, &key, &value)) {
644 if (g_type_is_a (ges_asset_get_extractable_type (GES_ASSET (value)),
646 ret = g_list_append (ret, g_object_ref (value));
654 * @project: A #GESProject to save
655 * @timeline: The #GESTimeline to save, it must have been extracted from @project
656 * @uri: The uri where to save @project and @timeline
657 * @formatter_asset: (allow-none): The formatter asset to use or %NULL. If %NULL,
658 * will try to save in the same format as the one from which the timeline as been loaded
659 * or default to the formatter with highest rank
660 * @overwrite: %TRUE to overwrite file if it exists
661 * @error: (out) (allow-none): An error to be set in case something wrong happens or %NULL
663 * Save the timeline of @project to @uri. You should make sure that @timeline
664 * is one of the timelines that have been extracted from @project
665 * (using ges_asset_extract (@project);)
667 * Returns: %TRUE if the project could be save, %FALSE otherwize
670 ges_project_save (GESProject * project, GESTimeline * timeline,
671 const gchar * uri, GESAsset * formatter_asset, gboolean overwrite,
676 GESFormatter *formatter = NULL;
678 g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
679 g_return_val_if_fail (formatter_asset == NULL ||
680 g_type_is_a (ges_asset_get_extractable_type (formatter_asset),
681 GES_TYPE_FORMATTER), FALSE);
682 g_return_val_if_fail ((error == NULL || *error == NULL), FALSE);
684 tl_asset = ges_extractable_get_asset (GES_EXTRACTABLE (timeline));
685 if (tl_asset == NULL && project->priv->uri == NULL) {
686 GESAsset *asset = ges_asset_cache_lookup (GES_TYPE_PROJECT, uri);
689 GST_WARNING_OBJECT (project, "Trying to save project to %s but we already"
690 "have %" GST_PTR_FORMAT " for that uri, can not save", uri, asset);
694 GST_DEBUG_OBJECT (project, "Timeline %" GST_PTR_FORMAT " has no asset"
695 " we have no uri set, so setting ourself as asset", timeline);
697 ges_extractable_set_asset (GES_EXTRACTABLE (timeline), GES_ASSET (project));
698 } else if (tl_asset != GES_ASSET (project)) {
699 GST_WARNING_OBJECT (project, "Timeline %" GST_PTR_FORMAT
700 " not created by this project can not save", timeline);
706 if (formatter_asset == NULL)
707 formatter_asset = gst_object_ref (ges_formatter_get_default ());
709 formatter = GES_FORMATTER (ges_asset_extract (formatter_asset, error));
710 if (formatter == NULL) {
711 GST_WARNING_OBJECT (project, "Could not create the formatter %s: Error: %s",
712 formatter_asset, (error && *error) ? (*error)->message : "Unknown");
718 ges_project_add_formatter (project, formatter);
719 ret = ges_formatter_save_to_uri (formatter, timeline, uri, overwrite, error);
720 if (ret && project->priv->uri == NULL)
721 ges_project_set_uri (project, uri);
725 gst_object_unref (formatter_asset);
726 ges_project_remove_formatter (project, formatter);
733 * @uri: (allow-none): The uri to be set after creating the project.
735 * Creates a new #GESProject and sets its uri to @uri if provided. Note that
736 * if @uri is not valid or %NULL, the uri of the project will then be set
737 * the first time you save the project. If you then save the project to
738 * other locations, it will never be updated again and the first valid URI is
739 * the URI it will keep refering to.
741 * Returns: A newly created #GESProject
744 ges_project_new (const gchar * uri)
746 gchar *id = (gchar *) uri;
750 id = g_strdup_printf ("project-%i", nb_projects++);
752 project = GES_PROJECT (ges_asset_request (GES_TYPE_TIMELINE, id, NULL));
755 ges_project_set_uri (project, uri);
762 * @project: A #GESProject that has an @uri set already
763 * @timeline: A blank timeline to load @project into
764 * @error: (out) (allow-none): An error to be set in case something wrong happens or %NULL
766 * Loads @project into @timeline
768 * Returns: %TRUE if the project could be loaded %FALSE otherwize.
771 ges_project_load (GESProject * project, GESTimeline * timeline, GError ** error)
773 g_return_val_if_fail (GES_IS_TIMELINE (timeline), FALSE);
774 g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
775 g_return_val_if_fail (ges_project_get_uri (project), FALSE);
776 g_return_val_if_fail (
777 (ges_extractable_get_asset (GES_EXTRACTABLE (timeline)) == NULL), FALSE);
779 if (!_load_project (project, timeline, error))
782 ges_extractable_set_asset (GES_EXTRACTABLE (timeline), GES_ASSET (project));
788 * ges_project_get_uri:
789 * @project: A #GESProject
791 * Retrieve the uri that is currently set on @project
793 * Returns: The uri that is set on @project
796 ges_project_get_uri (GESProject * project)
798 GESProjectPrivate *priv;
800 g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
802 priv = project->priv;
804 return g_strdup (priv->uri);
809 * ges_project_add_encoding_profile:
810 * @project: A #GESProject
811 * @profile: A #GstEncodingProfile to add to the project. If a profile with
812 * the same name already exists, it will be replaced
814 * Adds @profile to the project. It lets you save in what format
815 * the project has been renders and keep a reference to those formats.
816 * Also, those formats will be saves to the project file when possible.
818 * Returns: %TRUE if @profile could be added, %FALSE otherwize
821 ges_project_add_encoding_profile (GESProject * project,
822 GstEncodingProfile * profile)
825 GESProjectPrivate *priv;
827 g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
828 g_return_val_if_fail (GST_IS_ENCODING_PROFILE (profile), FALSE);
830 priv = project->priv;
831 for (tmp = priv->encoding_profiles; tmp; tmp = tmp->next) {
832 GstEncodingProfile *tmpprofile = GST_ENCODING_PROFILE (tmp->data);
834 if (g_strcmp0 (gst_encoding_profile_get_name (tmpprofile),
835 gst_encoding_profile_get_name (profile)) == 0) {
836 GST_INFO_OBJECT (project, "Already have profile: %s, replacing it",
837 gst_encoding_profile_get_name (profile));
839 gst_object_unref (tmp->data);
840 tmp->data = gst_object_ref (profile);
845 priv->encoding_profiles = g_list_prepend (priv->encoding_profiles,
846 gst_object_ref (profile));
852 * ges_project_list_encoding_profiles:
853 * @project: A #GESProject
855 * Lists the encoding profile that have been set to @project. The first one
856 * is the latest added.
858 * Returns: (transfer none) (element-type GstPbutils.EncodingProfile) (allow-none): The
859 * list of #GstEncodingProfile used in @project
862 ges_project_list_encoding_profiles (GESProject * project)
864 g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
866 return project->priv->encoding_profiles;