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:
ea043c2
)
project: Properly handle NULL project asset ID
author
Thibault Saunier
<tsaunier@igalia.com>
Mon, 12 Aug 2019 01:20:21 +0000
(21:20 -0400)
committer
Thibault Saunier
<tsaunier@igalia.com>
Mon, 12 Aug 2019 01:20:21 +0000
(21:20 -0400)
ges/ges-project.c
patch
|
blob
|
history
diff --git
a/ges/ges-project.c
b/ges/ges-project.c
index
2903110
..
6610a5f
100644
(file)
--- a/
ges/ges-project.c
+++ b/
ges/ges-project.c
@@
-219,8
+219,9
@@
_load_project (GESProject * project, GESTimeline * timeline, GError ** error)
g_signal_emit (project, _signals[LOADING_SIGNAL], 0, timeline);
if (priv->uri == NULL) {
+ const gchar *id = ges_asset_get_id (GES_ASSET (project));
- if (
gst_uri_is_valid (ges_asset_get_id (GES_ASSET (project))
)) {
+ if (
id && gst_uri_is_valid (id
)) {
ges_project_set_uri (project, ges_asset_get_id (GES_ASSET (project)));
GST_INFO_OBJECT (project, "Using asset ID %s as URI.", priv->uri);
} else {