run a file, this is a quick hack
authorAndy Wingo <wingo@pobox.com>
Fri, 11 Jan 2002 17:23:49 +0000 (17:23 +0000)
committerAndy Wingo <wingo@pobox.com>
Fri, 11 Jan 2002 17:23:49 +0000 (17:23 +0000)
Original commit message from CVS:
run a file, this is a quick hack

examples/xml/runxml.c
tests/old/examples/xml/runxml.c

index 07fecc0..e3f2d75 100644 (file)
@@ -39,7 +39,11 @@ int main(int argc,char *argv[])
 //  g_signal_connect (G_OBJECT (xml), "object_loaded",
 //                 G_CALLBACK (xml_loaded), xml);
 
-  ret = gst_xml_parse_file(xml, "xmlTest.gst", NULL);
+  if (argc == 2)
+    ret = gst_xml_parse_file(xml, argv[1], NULL);
+  else
+    ret = gst_xml_parse_file(xml, "xmlTest.gst", NULL);
+  
   g_assert (ret == TRUE);
 
   pipeline = gst_xml_get_element(xml, "pipeline");
index 07fecc0..e3f2d75 100644 (file)
@@ -39,7 +39,11 @@ int main(int argc,char *argv[])
 //  g_signal_connect (G_OBJECT (xml), "object_loaded",
 //                 G_CALLBACK (xml_loaded), xml);
 
-  ret = gst_xml_parse_file(xml, "xmlTest.gst", NULL);
+  if (argc == 2)
+    ret = gst_xml_parse_file(xml, argv[1], NULL);
+  else
+    ret = gst_xml_parse_file(xml, "xmlTest.gst", NULL);
+  
   g_assert (ret == TRUE);
 
   pipeline = gst_xml_get_element(xml, "pipeline");