mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
asset: Avoid dereferencing NULL pointer
CID 1461286
This commit is contained in:
parent
c5cff98143
commit
d1444581f6
2 changed files with 5 additions and 5 deletions
|
@ -738,11 +738,12 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
|
|||
return;
|
||||
}
|
||||
|
||||
if (asset) {
|
||||
ges_asset_finish_proxy (asset);
|
||||
ges_project_add_asset (project, asset);
|
||||
if (asset)
|
||||
gst_object_unref (asset);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* ges_project_set_loaded:
|
||||
|
|
|
@ -1244,7 +1244,6 @@ _trim_transition (GESTimeline * timeline, GESTimelineElement * element,
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
gboolean
|
||||
timeline_trim_object (GESTimeline * timeline, GESTimelineElement * object,
|
||||
guint32 new_layer_priority, GList * layers, GESEdge edge, guint64 position)
|
||||
|
|
Loading…
Reference in a new issue