projects
/
platform
/
upstream
/
gst-editing-services.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cd4502
)
uri-clip: Make sure to instantiate an asset to back GESUriClip-s
author
Thibault Saunier
<tsaunier@gnome.org>
Fri, 30 Oct 2015 09:52:12 +0000
(10:52 +0100)
committer
Thibault Saunier
<tsaunier@gnome.org>
Fri, 30 Oct 2015 10:07:58 +0000
(11:07 +0100)
ges/ges-uri-clip.c
patch
|
blob
|
history
diff --git
a/ges/ges-uri-clip.c
b/ges/ges-uri-clip.c
index
d70312e
..
652d1c6
100644
(file)
--- a/
ges/ges-uri-clip.c
+++ b/
ges/ges-uri-clip.c
@@
-472,10
+472,14
@@
ges_uri_clip_create_track_element (GESClip * clip, GESTrackType type)
GESUriClip *
ges_uri_clip_new (gchar * uri)
{
+ GESAsset *asset = GES_ASSET (ges_uri_clip_asset_request_sync (uri, NULL));
GESUriClip *res = NULL;
- if (gst_uri_is_valid (uri))
- res = g_object_new (GES_TYPE_URI_CLIP, "uri", uri, NULL);
+ if (asset) {
+ res = GES_URI_CLIP (ges_asset_extract (asset, NULL));
+ gst_object_unref (asset);
+ } else
+ GST_ERROR ("Could not create asset for uri: %s", uri);
return res;
}