From bbeb3eeca25d2862b580b439730fe1ecf787318c Mon Sep 17 00:00:00 2001 From: David Schleef Date: Tue, 2 Dec 2003 02:21:09 +0000 Subject: [PATCH] change _connect to _link Original commit message from CVS: change _connect to _link --- common | 2 +- examples/capsfilter/capsfilter1.c | 10 +++++----- tests/old/examples/capsfilter/capsfilter1.c | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/common b/common index 2c2bce01ed..b5288e8215 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit 2c2bce01ed5ed1d1684bd76a334477398009ef4a +Subproject commit b5288e8215c6eacf0782880f6c5b6dea8f445a34 diff --git a/examples/capsfilter/capsfilter1.c b/examples/capsfilter/capsfilter1.c index 35e20469f3..4d71109f40 100644 --- a/examples/capsfilter/capsfilter1.c +++ b/examples/capsfilter/capsfilter1.c @@ -13,7 +13,7 @@ new_pad_func (GstElement *element, GstPad *newpad, gpointer data) if (!strcmp (gst_pad_get_name (newpad), "video_00")) { gst_element_set_state (pipeline, GST_STATE_PAUSED); - gst_pad_connect (newpad, gst_element_get_pad (queue, "sink")); + gst_pad_link (newpad, gst_element_get_pad (queue, "sink")); gst_element_set_state (pipeline, GST_STATE_PLAYING); } } @@ -65,11 +65,11 @@ main (gint argc, gchar *argv[]) gst_bin_add (GST_BIN (thread), xvideosink); gst_bin_add (GST_BIN (pipeline), thread); - gst_element_connect (filesrc, "src", demux, "sink"); - gst_element_connect (queue, "src", mpeg2dec, "sink"); - gst_element_connect (mpeg2dec, "src", colorspace, "sink"); + gst_element_link (filesrc, "src", demux, "sink"); + gst_element_link (queue, "src", mpeg2dec, "sink"); + gst_element_link (mpeg2dec, "src", colorspace, "sink"); /* force RGB data passing between colorspace and xvideosink */ - res = gst_element_connect_filtered (colorspace, "src", xvideosink, "sink", + res = gst_element_link_filtered (colorspace, "src", xvideosink, "sink", GST_CAPS_NEW ( "filtercaps", "video/raw", diff --git a/tests/old/examples/capsfilter/capsfilter1.c b/tests/old/examples/capsfilter/capsfilter1.c index 35e20469f3..4d71109f40 100644 --- a/tests/old/examples/capsfilter/capsfilter1.c +++ b/tests/old/examples/capsfilter/capsfilter1.c @@ -13,7 +13,7 @@ new_pad_func (GstElement *element, GstPad *newpad, gpointer data) if (!strcmp (gst_pad_get_name (newpad), "video_00")) { gst_element_set_state (pipeline, GST_STATE_PAUSED); - gst_pad_connect (newpad, gst_element_get_pad (queue, "sink")); + gst_pad_link (newpad, gst_element_get_pad (queue, "sink")); gst_element_set_state (pipeline, GST_STATE_PLAYING); } } @@ -65,11 +65,11 @@ main (gint argc, gchar *argv[]) gst_bin_add (GST_BIN (thread), xvideosink); gst_bin_add (GST_BIN (pipeline), thread); - gst_element_connect (filesrc, "src", demux, "sink"); - gst_element_connect (queue, "src", mpeg2dec, "sink"); - gst_element_connect (mpeg2dec, "src", colorspace, "sink"); + gst_element_link (filesrc, "src", demux, "sink"); + gst_element_link (queue, "src", mpeg2dec, "sink"); + gst_element_link (mpeg2dec, "src", colorspace, "sink"); /* force RGB data passing between colorspace and xvideosink */ - res = gst_element_connect_filtered (colorspace, "src", xvideosink, "sink", + res = gst_element_link_filtered (colorspace, "src", xvideosink, "sink", GST_CAPS_NEW ( "filtercaps", "video/raw",