summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2017-11-25 15:56:36 -0300
committerThibault Saunier <tsaunier@gnome.org>2017-11-25 16:12:22 -0300
commita97ab50ab9aa877f0e8c9e508695452967dc9094 (patch)
tree26932a0a14794fc19c0a90e5587d611555fcc87e
parentaf40ec08fc89663baa3490a6c259ee083fe9781f (diff)
uri-clip: Copy previous track elements bindings when setting a new asset
Fixes https://phabricator.freedesktop.org/T7862
-rw-r--r--ges/ges-uri-clip.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/ges/ges-uri-clip.c b/ges/ges-uri-clip.c
index ec81e72c02..f61944e6c0 100644
--- a/ges/ges-uri-clip.c
+++ b/ges/ges-uri-clip.c
@@ -319,10 +319,15 @@ extractable_set_asset (GESExtractable * self, GESAsset * asset)
if (GES_IS_SOURCE (tmp->data)) {
GESTrack *track = ges_track_element_get_track (tmp->data);
- if (track->type == GES_TRACK_TYPE_AUDIO && audio_source)
+ if (track->type == GES_TRACK_TYPE_AUDIO && audio_source) {
ges_track_element_copy_properties (audio_source, tmp->data);
- else if (track->type == GES_TRACK_TYPE_VIDEO && video_source)
+ ges_track_element_copy_bindings (GES_TRACK_ELEMENT (audio_source),
+ tmp->data, GST_CLOCK_TIME_NONE);
+ } else if (track->type == GES_TRACK_TYPE_VIDEO && video_source) {
ges_track_element_copy_properties (video_source, tmp->data);
+ ges_track_element_copy_bindings (GES_TRACK_ELEMENT (video_source),
+ tmp->data, GST_CLOCK_TIME_NONE);
+ }
}
}