mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 22:28:22 +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 *
|
||||
gst_editor_project_new_from_file (const guchar *fname)
|
||||
{
|
||||
#ifndef GST_DISABLE_LOADSAVE
|
||||
GstEditorProject *editorproject;
|
||||
GstXML *xml;
|
||||
GList *elements;
|
||||
|
@ -140,8 +141,10 @@ gst_editor_project_new_from_file (const guchar *fname)
|
|||
|
||||
elements = g_list_next (elements);
|
||||
}
|
||||
|
||||
return editorproject;
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -162,7 +165,9 @@ gst_editor_project_save_as (GstEditorProject *project, const guchar *fname)
|
|||
while (elements) {
|
||||
GstElement *element = (GstElement *) elements->data;
|
||||
|
||||
#ifndef GST_DISABLE_LOADSAVE
|
||||
xmlSaveFile (fname, gst_xml_write (element));
|
||||
#endif
|
||||
|
||||
elements = g_list_next (elements);
|
||||
}
|
||||
|
|
|
@ -149,7 +149,7 @@ gboolean gst_object_check_uniqueness (GList *list, const gchar *name);
|
|||
|
||||
#ifndef GST_DISABLE_LOADSAVE
|
||||
xmlNodePtr gst_object_save_thyself (GstObject *object, xmlNodePtr parent);
|
||||
void gst_object_restore_thyself (GstObject *object, xmlNodePtr parent);
|
||||
void gst_object_restore_thyself (GstObject *object, xmlNodePtr parent);
|
||||
#else
|
||||
#pragma GCC poison gst_object_save_thyself
|
||||
#pragma GCC poison gst_object_restore_thyself
|
||||
|
|
Loading…
Reference in a new issue