From 12f5bc79261b290accd4d6151b2705c088358262 Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Wed, 2 May 2001 20:01:02 +0000 Subject: [PATCH] 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 --- examples/mixer/mixer.c | 7 +++++++ tests/old/examples/mixer/mixer.c | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/examples/mixer/mixer.c b/examples/mixer/mixer.c index b80b589425..13d94dd0ed 100644 --- a/examples/mixer/mixer.c +++ b/examples/mixer/mixer.c @@ -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 */ diff --git a/tests/old/examples/mixer/mixer.c b/tests/old/examples/mixer/mixer.c index b80b589425..13d94dd0ed 100644 --- a/tests/old/examples/mixer/mixer.c +++ b/tests/old/examples/mixer/mixer.c @@ -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 */