From fdadef86d9845ac0fce339b1b8921994e154f3d0 Mon Sep 17 00:00:00 2001 From: Erik Walthinsen Date: Sat, 20 Jan 2001 03:36:20 +0000 Subject: [PATCH] updated tests code to new ghostpad API Original commit message from CVS: updated tests code to new ghostpad API --- tests/paranoia.c | 2 +- tests/queue.c | 4 ++-- tests/states.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/paranoia.c b/tests/paranoia.c index ba6e41cdb2..418bfebf52 100644 --- a/tests/paranoia.c +++ b/tests/paranoia.c @@ -36,7 +36,7 @@ int main(int argc,char *argv[]) { gst_bin_add(GST_BIN(pipeline),queue); gst_bin_add(GST_BIN(audio_thread),audiosink); 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(queue,"src",audio_thread,"sink"); diff --git a/tests/queue.c b/tests/queue.c index 980a32318b..901f66c3dc 100644 --- a/tests/queue.c +++ b/tests/queue.c @@ -29,11 +29,11 @@ fprintf(stderr,"QUEUE: fakesink\n"); gst_bin_add(thr1,src); 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_add(thr2,sink); 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); fprintf(stderr,"QUEUE: filled in threads\n"); diff --git a/tests/states.c b/tests/states.c index 211bec0330..3d5b6accf1 100644 --- a/tests/states.c +++ b/tests/states.c @@ -48,8 +48,8 @@ int main(int argc,char *argv[]) { GST_STATE(bin),_gst_print_statename(GST_STATE(bin))); 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,"src")); + 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"),"src"); gst_bin_add(GST_BIN(bin),src); gst_bin_add(GST_BIN(bin),subbin);