mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
validate: Create folders as needed when serializing timelines
This commit is contained in:
parent
e5045b33d5
commit
5e4555c6b3
1 changed files with 6 additions and 0 deletions
|
@ -53,11 +53,17 @@ static gboolean
|
|||
_serialize_project (GstValidateScenario * scenario, GstValidateAction * action)
|
||||
{
|
||||
const gchar *uri = gst_structure_get_string (action->structure, "uri");
|
||||
gchar *location = gst_uri_get_location (uri),
|
||||
*dir = g_path_get_dirname (location);
|
||||
gboolean res;
|
||||
DECLARE_AND_GET_TIMELINE (scenario, action);
|
||||
|
||||
gst_validate_printf (action, "Saving project to %s", uri);
|
||||
|
||||
g_mkdir_with_parents (dir, 0755);
|
||||
g_free (location);
|
||||
g_free (dir);
|
||||
|
||||
res = ges_timeline_save_to_uri (timeline, uri, NULL, TRUE, NULL);
|
||||
|
||||
g_object_unref (timeline);
|
||||
|
|
Loading…
Reference in a new issue