mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
ges-project: Surface a meaningful error when no suitable formatter.
Reviewers: thiblahute Differential Revision: http://phabricator.freedesktop.org/D67
This commit is contained in:
parent
44af36026f
commit
47f1713f1e
1 changed files with 3 additions and 1 deletions
|
@ -191,8 +191,10 @@ _load_project (GESProject * project, GESTimeline * timeline, GError ** error)
|
|||
if (priv->formatter_asset == NULL)
|
||||
priv->formatter_asset = _find_formatter_asset_for_id (priv->uri);
|
||||
|
||||
if (priv->formatter_asset == NULL)
|
||||
if (priv->formatter_asset == NULL) {
|
||||
lerr = g_error_new (GES_ERROR, 0, "Could not find a suitable formatter");
|
||||
goto failed;
|
||||
}
|
||||
|
||||
formatter = GES_FORMATTER (ges_asset_extract (priv->formatter_asset, &lerr));
|
||||
if (lerr) {
|
||||
|
|
Loading…
Reference in a new issue