run a file, this is a quick hack

Original commit message from CVS:
run a file, this is a quick hack
This commit is contained in:
Andy Wingo 2002-01-11 17:23:49 +00:00
parent 58ce781c21
commit 50043acf47
2 changed files with 10 additions and 2 deletions

View 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");

View 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");