added two debugging things: xml pipelie output, and schedule dump

Original commit message from CVS:
added two debugging things: xml pipelie output, and schedule dump
This commit is contained in:
Erik Walthinsen 2001-05-02 20:01:02 +00:00
parent 4b2bb87b25
commit 12f5bc7926
2 changed files with 14 additions and 0 deletions

View file

@ -190,15 +190,22 @@ int main(int argc,char *argv[])
env_register_cp (channel_in->volenv, num_channels * 10.0 , 1.0 / num_channels); /* to end level */
}
// write the pipeline to XML for visualization
xmlSaveFile("mixer.xml", gst_xml_write(GST_ELEMENT(main_bin)));
/* start playing */
gst_element_set_state(main_bin, GST_STATE_PLAYING);
// write out the schedule
gst_schedule_show(GST_ELEMENT_SCHED(main_bin));
playing = TRUE;
j = 0;
while (playing && j < 1000)
{
gst_bin_iterate(GST_BIN(main_bin));
fprintf(stderr,"after iterate()\n");
++j;
}
/* stop the bin */

View file

@ -190,15 +190,22 @@ int main(int argc,char *argv[])
env_register_cp (channel_in->volenv, num_channels * 10.0 , 1.0 / num_channels); /* to end level */
}
// write the pipeline to XML for visualization
xmlSaveFile("mixer.xml", gst_xml_write(GST_ELEMENT(main_bin)));
/* start playing */
gst_element_set_state(main_bin, GST_STATE_PLAYING);
// write out the schedule
gst_schedule_show(GST_ELEMENT_SCHED(main_bin));
playing = TRUE;
j = 0;
while (playing && j < 1000)
{
gst_bin_iterate(GST_BIN(main_bin));
fprintf(stderr,"after iterate()\n");
++j;
}
/* stop the bin */