Added ifdefs around xml code when it was not compiled into the core.

Original commit message from CVS:
Added ifdefs around xml code when it was not compiled into the core.
This commit is contained in:
Wim Taymans 2001-10-01 20:23:49 +00:00
parent 95fae173f7
commit 0ff096c841
3 changed files with 11 additions and 1 deletions

View file

@ -5,10 +5,16 @@ else
GST_REGISTRY_SRC = gstreamer-register
endif
if GST_DISABLE_LOADSAVE
GST_LOADSAVE_SRC =
else
GST_LOADSAVE_SRC = gstreamer-compprep
endif
bin_PROGRAMS = gstreamer-launch \
$(GST_REGISTRY_SRC) \
gstreamer-inspect \
gstreamer-compprep \
$(GST_LOADSAVE_SRC) \
gstreamer-complete
man_MANS = gstreamer-launch.1 gstreamer-register.1 gstreamer-inspect.1 \

View file

@ -221,10 +221,12 @@ print_element_info (GstElementFactory *factory)
printf(" Has change_state() function: %s\n",
GST_DEBUG_FUNCPTR_NAME(gstelement_class->change_state));
#ifndef GST_DISABLE_LOADSAVE
printf(" Has custom save_thyself() function: %s\n",
GST_DEBUG_FUNCPTR_NAME(gstobject_class->save_thyself));
printf(" Has custom restore_thyself() function: %s\n",
GST_DEBUG_FUNCPTR_NAME(gstobject_class->restore_thyself));
#endif

View file

@ -152,9 +152,11 @@ main(int argc, char *argv[])
gst_parse_launch (cmdline, GST_BIN (pipeline));
#ifndef GST_DISABLE_LOADSAVE
if (save_pipeline) {
xmlSaveFile (savefile, gst_xml_write (pipeline));
}
#endif
if (run_pipeline) {
arg_search(GST_BIN(pipeline),"xid",xid_handler,NULL);