From be876ae57756d21690adfc29cc16c1791643be23 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 10 Jan 2003 10:22:25 +0000 Subject: another batch of connect->link fixes please let me know about issues and please refrain of making them yourself, so t... Original commit message from CVS: another batch of connect->link fixes please let me know about issues and please refrain of making them yourself, so that I don't spend double the time resolving conflicts --- ext/shout2/gstshout2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ext/shout2') diff --git a/ext/shout2/gstshout2.c b/ext/shout2/gstshout2.c index 47d5105a..45541ad0 100644 --- a/ext/shout2/gstshout2.c +++ b/ext/shout2/gstshout2.c @@ -196,7 +196,7 @@ gst_shout2send_init (GstShout2send *shout2send) gst_element_add_pad(GST_ELEMENT(shout2send),shout2send->sinkpad); gst_pad_set_chain_function(shout2send->sinkpad,gst_shout2send_chain); - gst_pad_set_connect_function (shout2send->sinkpad, gst_shout2send_connect); + gst_pad_set_link_function (shout2send->sinkpad, gst_shout2send_connect); shout2send->ip = g_strdup ("127.0.0.1"); shout2send->port = 8000; @@ -361,16 +361,16 @@ gst_shout2send_connect (GstPad *pad, GstCaps *caps) if (!strcmp(gst_caps_get_mime (caps), "audio/x-mp3")) { audio_format = SHOUT_FORMAT_MP3; - return GST_PAD_CONNECT_OK; + return GST_PAD_LINK_OK; } if (!strcmp(gst_caps_get_mime (caps), "application/x-ogg")) { audio_format = SHOUT_FORMAT_VORBIS; - return GST_PAD_CONNECT_OK; + return GST_PAD_LINK_OK; } else { - return GST_PAD_CONNECT_REFUSED; + return GST_PAD_LINK_REFUSED; } } -- cgit