mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
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:
parent
4b2bb87b25
commit
12f5bc7926
2 changed files with 14 additions and 0 deletions
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue