mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
ges: effect: Report asset request errors
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5981>
This commit is contained in:
parent
49fec0726f
commit
2de5984300
1 changed files with 9 additions and 1 deletions
|
@ -381,8 +381,16 @@ GESEffect *
|
|||
ges_effect_new (const gchar * bin_description)
|
||||
{
|
||||
GESEffect *effect;
|
||||
GError *error = NULL;
|
||||
GESAsset *asset = ges_asset_request (GES_TYPE_EFFECT,
|
||||
bin_description, NULL);
|
||||
bin_description, &error);
|
||||
|
||||
if (error != NULL) {
|
||||
GST_ERROR ("Error requesting asset with description \"%s\": %s",
|
||||
bin_description, error->message);
|
||||
g_error_free (error);
|
||||
/* fall-through */
|
||||
}
|
||||
|
||||
g_return_val_if_fail (asset, NULL);
|
||||
|
||||
|
|
Loading…
Reference in a new issue