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
|
@ -606,7 +606,7 @@ ges_project_class_init (GESProjectClass * klass)
|
||||||
* @project: the #GESProject on which a problem happend when creted a #GESAsset
|
* @project: the #GESProject on which a problem happend when creted a #GESAsset
|
||||||
* @timeline: The timeline that failed loading
|
* @timeline: The timeline that failed loading
|
||||||
* @error: The #GError defining the error that occured
|
* @error: The #GError defining the error that occured
|
||||||
*
|
*
|
||||||
* Since: 1.18
|
* Since: 1.18
|
||||||
*/
|
*/
|
||||||
_signals[ERROR_LOADING] =
|
_signals[ERROR_LOADING] =
|
||||||
|
@ -738,10 +738,11 @@ new_asset_cb (GESAsset * source, GAsyncResult * res, GESProject * project)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ges_asset_finish_proxy (asset);
|
if (asset) {
|
||||||
ges_project_add_asset (project, asset);
|
ges_asset_finish_proxy (asset);
|
||||||
if (asset)
|
ges_project_add_asset (project, asset);
|
||||||
gst_object_unref (asset);
|
gst_object_unref (asset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1244,7 +1244,6 @@ _trim_transition (GESTimeline * timeline, GESTimelineElement * element,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
timeline_trim_object (GESTimeline * timeline, GESTimelineElement * object,
|
timeline_trim_object (GESTimeline * timeline, GESTimelineElement * object,
|
||||||
guint32 new_layer_priority, GList * layers, GESEdge edge, guint64 position)
|
guint32 new_layer_priority, GList * layers, GESEdge edge, guint64 position)
|
||||||
|
|
Loading…
Reference in a new issue