mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
ges-launch: Properly add UriClipAssets to the project
This commit is contained in:
parent
f6038e3ad2
commit
90f4e571ad
1 changed files with 3 additions and 1 deletions
|
@ -132,8 +132,9 @@ create_timeline (int nbargs, gchar ** argv, gchar * audio, gchar * video)
|
||||||
GESTrack *tracka = NULL, *trackv = NULL;
|
GESTrack *tracka = NULL, *trackv = NULL;
|
||||||
GESTimeline *timeline;
|
GESTimeline *timeline;
|
||||||
guint i;
|
guint i;
|
||||||
|
GESProject *project = ges_project_new (NULL);
|
||||||
|
|
||||||
timeline = ges_timeline_new ();
|
timeline = GES_TIMELINE (ges_asset_extract (GES_ASSET (project), NULL));
|
||||||
|
|
||||||
if (audio)
|
if (audio)
|
||||||
tracka = ges_track_audio_raw_new ();
|
tracka = ges_track_audio_raw_new ();
|
||||||
|
@ -221,6 +222,7 @@ create_timeline (int nbargs, gchar ** argv, gchar * audio, gchar * video)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ges_project_add_asset (project, asset);
|
||||||
clip = GES_CLIP (ges_asset_extract (asset, &error));
|
clip = GES_CLIP (ges_asset_extract (asset, &error));
|
||||||
if (error) {
|
if (error) {
|
||||||
g_printerr ("Can not extract asset for %s", uri);
|
g_printerr ("Can not extract asset for %s", uri);
|
||||||
|
|
Loading…
Reference in a new issue