summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2021-01-15 15:27:30 -0300
committerThibault Saunier <tsaunier@igalia.com>2021-02-10 16:14:47 -0300
commit6336c1bb534bd3b24264d6a68f1c13d74560f35c (patch)
treec4f50922f51810ee09a81fe0d5a28ff78907f490
parent8094f8cd93ffa783c8902d08c9ec91850511237d (diff)
launch: Add encoding profiles to the project
So it is serialized on `--save` Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/227>
-rw-r--r--tools/ges-launcher.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/ges-launcher.c b/tools/ges-launcher.c
index acfd38eb..baf8ae74 100644
--- a/tools/ges-launcher.c
+++ b/tools/ges-launcher.c
@@ -477,13 +477,14 @@ _set_rendering_details (GESLauncher * self)
return TRUE;
}
+ proj =
+ GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE (self->
+ priv->timeline)));
+
/* Setup profile/encoding if needed */
if (opts->outputuri) {
GstEncodingProfile *prof = NULL;
if (!opts->format) {
- GESProject *proj =
- GES_PROJECT (ges_extractable_get_asset (GES_EXTRACTABLE (self->priv->
- timeline)));
const GList *profiles = ges_project_list_encoding_profiles (proj);
if (profiles) {
@@ -542,6 +543,8 @@ _set_rendering_details (GESLauncher * self)
"");
describe_encoding_profile (prof);
g_print ("\n");
+
+ ges_project_add_encoding_profile (proj, prof);
}
opts->outputuri = ensure_uri (opts->outputuri);