mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 03:31:05 +00:00
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:
parent
58ce781c21
commit
50043acf47
2 changed files with 10 additions and 2 deletions
|
@ -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");
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue