Commit 0ff096c8 authored by Wim Taymans's avatar Wim Taymans
Browse files

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.
parent 95fae173
...@@ -5,10 +5,16 @@ else ...@@ -5,10 +5,16 @@ else
GST_REGISTRY_SRC = gstreamer-register GST_REGISTRY_SRC = gstreamer-register
endif endif
if GST_DISABLE_LOADSAVE
GST_LOADSAVE_SRC =
else
GST_LOADSAVE_SRC = gstreamer-compprep
endif
bin_PROGRAMS = gstreamer-launch \ bin_PROGRAMS = gstreamer-launch \
$(GST_REGISTRY_SRC) \ $(GST_REGISTRY_SRC) \
gstreamer-inspect \ gstreamer-inspect \
gstreamer-compprep \ $(GST_LOADSAVE_SRC) \
gstreamer-complete gstreamer-complete
man_MANS = gstreamer-launch.1 gstreamer-register.1 gstreamer-inspect.1 \ man_MANS = gstreamer-launch.1 gstreamer-register.1 gstreamer-inspect.1 \
......
...@@ -221,10 +221,12 @@ print_element_info (GstElementFactory *factory) ...@@ -221,10 +221,12 @@ print_element_info (GstElementFactory *factory)
printf(" Has change_state() function: %s\n", printf(" Has change_state() function: %s\n",
GST_DEBUG_FUNCPTR_NAME(gstelement_class->change_state)); GST_DEBUG_FUNCPTR_NAME(gstelement_class->change_state));
#ifndef GST_DISABLE_LOADSAVE
printf(" Has custom save_thyself() function: %s\n", printf(" Has custom save_thyself() function: %s\n",
GST_DEBUG_FUNCPTR_NAME(gstobject_class->save_thyself)); GST_DEBUG_FUNCPTR_NAME(gstobject_class->save_thyself));
printf(" Has custom restore_thyself() function: %s\n", printf(" Has custom restore_thyself() function: %s\n",
GST_DEBUG_FUNCPTR_NAME(gstobject_class->restore_thyself)); GST_DEBUG_FUNCPTR_NAME(gstobject_class->restore_thyself));
#endif
......
...@@ -152,9 +152,11 @@ main(int argc, char *argv[]) ...@@ -152,9 +152,11 @@ main(int argc, char *argv[])
gst_parse_launch (cmdline, GST_BIN (pipeline)); gst_parse_launch (cmdline, GST_BIN (pipeline));
#ifndef GST_DISABLE_LOADSAVE
if (save_pipeline) { if (save_pipeline) {
xmlSaveFile (savefile, gst_xml_write (pipeline)); xmlSaveFile (savefile, gst_xml_write (pipeline));
} }
#endif
if (run_pipeline) { if (run_pipeline) {
arg_search(GST_BIN(pipeline),"xid",xid_handler,NULL); arg_search(GST_BIN(pipeline),"xid",xid_handler,NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment