mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
uriclip: Add an error message when creating a clip failed
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/252>
This commit is contained in:
parent
cb4dab37a1
commit
712f3d32d4
1 changed files with 6 additions and 2 deletions
|
@ -607,11 +607,15 @@ ges_uri_clip_create_track_elements (GESClip * clip, GESTrackType type)
|
|||
GESUriClip *
|
||||
ges_uri_clip_new (const gchar * uri)
|
||||
{
|
||||
GESAsset *asset = GES_ASSET (ges_uri_clip_asset_request_sync (uri, NULL));
|
||||
GError *err = NULL;
|
||||
GESUriClip *res = NULL;
|
||||
GESAsset *asset = GES_ASSET (ges_uri_clip_asset_request_sync (uri, &err));
|
||||
|
||||
if (asset) {
|
||||
res = GES_URI_CLIP (ges_asset_extract (asset, NULL));
|
||||
res = GES_URI_CLIP (ges_asset_extract (asset, &err));
|
||||
if (!res && err)
|
||||
GST_ERROR ("Could not analyze %s: %s", uri, err->message);
|
||||
|
||||
gst_object_unref (asset);
|
||||
} else
|
||||
GST_ERROR ("Could not create asset for uri: %s", uri);
|
||||
|
|
Loading…
Reference in a new issue