mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
ges-pitivi-formatter: Fixed loading of projects with empty timeline
Because 'project-loaded' signal was triggered from track object loading callback in case with projects that have empty timeline this signal was never emitted.
This commit is contained in:
parent
b102df2d4d
commit
963cce240c
1 changed files with 14 additions and 3 deletions
|
@ -1101,10 +1101,21 @@ load_pitivi_file_from_uri (GESFormatter * self,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/* If there are no timeline objects to load we should emit
|
||||||
|
* 'project-loaded' signal.
|
||||||
|
*/
|
||||||
|
if (!g_hash_table_size (priv->timeline_objects_table)) {
|
||||||
|
GESFormatterClass *klass = GES_FORMATTER_GET_CLASS (self);
|
||||||
|
|
||||||
|
klass->project_loaded (self, GES_PITIVI_FORMATTER (self)->priv->timeline);
|
||||||
|
} else {
|
||||||
if (!make_timeline_objects (self)) {
|
if (!make_timeline_objects (self)) {
|
||||||
GST_ERROR ("Couldn't deserialise the project properly");
|
GST_ERROR ("Couldn't deserialise the project properly");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
xmlXPathFreeContext (priv->xpathCtx);
|
xmlXPathFreeContext (priv->xpathCtx);
|
||||||
xmlFreeDoc (doc);
|
xmlFreeDoc (doc);
|
||||||
|
|
Loading…
Reference in a new issue