From 27dd0b1201281f23d17a9122e34610ae73b70b6e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 12 Dec 2001 12:15:54 +0000 Subject: [PATCH] scheduler changes Original commit message from CVS: scheduler changes --- test/mpeg2parse4.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/test/mpeg2parse4.c b/test/mpeg2parse4.c index 01d4d72270..e7f2aeb719 100644 --- a/test/mpeg2parse4.c +++ b/test/mpeg2parse4.c @@ -45,7 +45,7 @@ int mpeg2parse_newpad(GstElement *parser,GstPad *pad, GstElement *pipeline) { gst_element_connect(v_decode_queue,"src",v_decode,"sink"); gst_element_connect(v_decode,"src",v_color,"sink"); - gst_schedule_show(GST_ELEMENT_SCHED(v_decode_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(v_decode_thread)); // build the show thread @@ -67,15 +67,15 @@ int mpeg2parse_newpad(GstElement *parser,GstPad *pad, GstElement *pipeline) { gst_bin_add(GST_BIN(v_decode_thread),v_show_thread); gst_element_connect(v_color,"src",v_show_queue,"sink"); - gst_schedule_show(GST_ELEMENT_SCHED(v_decode_thread)); - gst_schedule_show(GST_ELEMENT_SCHED(v_show_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(v_decode_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(v_show_thread)); // connect the whole thing to the main pipeline gst_pad_connect(pad, gst_element_get_pad(v_decode_queue,"sink")); gst_bin_add(GST_BIN(pipeline),v_decode_thread); - gst_schedule_show(GST_ELEMENT_SCHED(v_decode_thread)); - gst_schedule_show(GST_ELEMENT_SCHED(v_show_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(v_decode_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(v_show_thread)); // start it playing gst_element_set_state(v_decode_thread,GST_STATE_PLAYING); @@ -96,7 +96,7 @@ int mpeg2parse_newpad(GstElement *parser,GstPad *pad, GstElement *pipeline) { gst_element_connect(a_decode_queue,"src",a_decode,"sink"); - gst_schedule_show(GST_ELEMENT_SCHED(a_decode_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(a_decode_thread)); // build the sink thread @@ -119,15 +119,15 @@ int mpeg2parse_newpad(GstElement *parser,GstPad *pad, GstElement *pipeline) { gst_bin_add(GST_BIN(a_decode_thread),a_sink_thread); gst_element_connect(a_decode,"src",a_sink_queue,"sink"); - gst_schedule_show(GST_ELEMENT_SCHED(a_decode_thread)); - gst_schedule_show(GST_ELEMENT_SCHED(a_sink_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(a_decode_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(a_sink_thread)); // connect the whole thing to the main pipeline gst_pad_connect(pad, gst_element_get_pad(a_decode_queue,"sink")); gst_bin_add(GST_BIN(pipeline),a_decode_thread); - gst_schedule_show(GST_ELEMENT_SCHED(a_decode_thread)); - gst_schedule_show(GST_ELEMENT_SCHED(a_sink_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(a_decode_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(a_sink_thread)); // start it playing gst_element_set_state(a_decode_thread,GST_STATE_PLAYING); @@ -137,11 +137,11 @@ int mpeg2parse_newpad(GstElement *parser,GstPad *pad, GstElement *pipeline) { if (v_decode_thread && a_decode_thread) { xmlSaveFile("mpeg2parse4.gst", gst_xml_write(GST_ELEMENT(pipeline))); fprintf(stderr,"DUMP OF ALL SCHEDULES!!!:\n"); - gst_schedule_show(GST_ELEMENT_SCHED(pipeline)); - gst_schedule_show(GST_ELEMENT_SCHED(v_decode_thread)); - gst_schedule_show(GST_ELEMENT_SCHED(v_show_thread)); - gst_schedule_show(GST_ELEMENT_SCHED(a_decode_thread)); - gst_schedule_show(GST_ELEMENT_SCHED(a_sink_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(pipeline)); + gst_scheduler_show(GST_ELEMENT_SCHED(v_decode_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(v_show_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(a_decode_thread)); + gst_scheduler_show(GST_ELEMENT_SCHED(a_sink_thread)); } return 0; -- 2.34.1