mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 12:02:27 +00:00
loadsave fixes
Original commit message from CVS: loadsave fixes
This commit is contained in:
parent
e303a9c266
commit
e9327c81ae
2 changed files with 7 additions and 2 deletions
|
@ -120,6 +120,7 @@ gst_editor_project_new (void)
|
||||||
GstEditorProject *
|
GstEditorProject *
|
||||||
gst_editor_project_new_from_file (const guchar *fname)
|
gst_editor_project_new_from_file (const guchar *fname)
|
||||||
{
|
{
|
||||||
|
#ifndef GST_DISABLE_LOADSAVE
|
||||||
GstEditorProject *editorproject;
|
GstEditorProject *editorproject;
|
||||||
GstXML *xml;
|
GstXML *xml;
|
||||||
GList *elements;
|
GList *elements;
|
||||||
|
@ -140,8 +141,10 @@ gst_editor_project_new_from_file (const guchar *fname)
|
||||||
|
|
||||||
elements = g_list_next (elements);
|
elements = g_list_next (elements);
|
||||||
}
|
}
|
||||||
|
|
||||||
return editorproject;
|
return editorproject;
|
||||||
|
#else
|
||||||
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -162,7 +165,9 @@ gst_editor_project_save_as (GstEditorProject *project, const guchar *fname)
|
||||||
while (elements) {
|
while (elements) {
|
||||||
GstElement *element = (GstElement *) elements->data;
|
GstElement *element = (GstElement *) elements->data;
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_LOADSAVE
|
||||||
xmlSaveFile (fname, gst_xml_write (element));
|
xmlSaveFile (fname, gst_xml_write (element));
|
||||||
|
#endif
|
||||||
|
|
||||||
elements = g_list_next (elements);
|
elements = g_list_next (elements);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue