mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 05:59:10 +00:00
updated tests code to new ghostpad API
Original commit message from CVS: updated tests code to new ghostpad API
This commit is contained in:
parent
92b4650081
commit
fdadef86d9
3 changed files with 5 additions and 5 deletions
|
@ -36,7 +36,7 @@ int main(int argc,char *argv[]) {
|
||||||
gst_bin_add(GST_BIN(pipeline),queue);
|
gst_bin_add(GST_BIN(pipeline),queue);
|
||||||
gst_bin_add(GST_BIN(audio_thread),audiosink);
|
gst_bin_add(GST_BIN(audio_thread),audiosink);
|
||||||
gst_bin_add(GST_BIN(pipeline),audio_thread);
|
gst_bin_add(GST_BIN(pipeline),audio_thread);
|
||||||
gst_element_add_ghost_pad(GST_ELEMENT(audio_thread),gst_element_get_pad(audiosink,"sink"));
|
gst_element_add_ghost_pad(GST_ELEMENT(audio_thread),gst_element_get_pad(audiosink,"sink"),"sink");
|
||||||
|
|
||||||
gst_element_connect(paranoia,"src",queue,"sink");
|
gst_element_connect(paranoia,"src",queue,"sink");
|
||||||
gst_element_connect(queue,"src",audio_thread,"sink");
|
gst_element_connect(queue,"src",audio_thread,"sink");
|
||||||
|
|
|
@ -29,11 +29,11 @@ fprintf(stderr,"QUEUE: fakesink\n");
|
||||||
|
|
||||||
gst_bin_add(thr1,src);
|
gst_bin_add(thr1,src);
|
||||||
fprintf(stderr,"QUEUE: added src to thr1\n");
|
fprintf(stderr,"QUEUE: added src to thr1\n");
|
||||||
gst_element_add_ghost_pad(GST_ELEMENT(thr1),gst_element_get_pad(src,"src"));
|
gst_element_add_ghost_pad(GST_ELEMENT(thr1),gst_element_get_pad(src,"src"),"src");
|
||||||
// gst_bin_use_cothreads(thr1,TRUE);
|
// gst_bin_use_cothreads(thr1,TRUE);
|
||||||
gst_bin_add(thr2,sink);
|
gst_bin_add(thr2,sink);
|
||||||
fprintf(stderr,"QUEUE: added sink to thr2\n");
|
fprintf(stderr,"QUEUE: added sink to thr2\n");
|
||||||
gst_element_add_ghost_pad(GST_ELEMENT(thr2),gst_element_get_pad(sink,"sink"));
|
gst_element_add_ghost_pad(GST_ELEMENT(thr2),gst_element_get_pad(sink,"sink"),"sink");
|
||||||
// gst_bin_use_cothreads(thr2,TRUE);
|
// gst_bin_use_cothreads(thr2,TRUE);
|
||||||
fprintf(stderr,"QUEUE: filled in threads\n");
|
fprintf(stderr,"QUEUE: filled in threads\n");
|
||||||
|
|
||||||
|
|
|
@ -48,8 +48,8 @@ int main(int argc,char *argv[]) {
|
||||||
GST_STATE(bin),_gst_print_statename(GST_STATE(bin)));
|
GST_STATE(bin),_gst_print_statename(GST_STATE(bin)));
|
||||||
|
|
||||||
gst_bin_add(GST_BIN(subbin),filter);
|
gst_bin_add(GST_BIN(subbin),filter);
|
||||||
gst_element_add_ghost_pad(GST_ELEMENT(bin),gst_element_get_pad(filter,"sink"));
|
gst_element_add_ghost_pad(GST_ELEMENT(bin),gst_element_get_pad(filter,"sink"),"sink");
|
||||||
gst_element_add_ghost_pad(GST_ELEMENT(bin),gst_element_get_pad(filter,"src"));
|
gst_element_add_ghost_pad(GST_ELEMENT(bin),gst_element_get_pad(filter,"src"),"src");
|
||||||
|
|
||||||
gst_bin_add(GST_BIN(bin),src);
|
gst_bin_add(GST_BIN(bin),src);
|
||||||
gst_bin_add(GST_BIN(bin),subbin);
|
gst_bin_add(GST_BIN(bin),subbin);
|
||||||
|
|
Loading…
Reference in a new issue