diff options
author | Thomas Vander Stichele <thomas@apestaart.org> | 2003-01-10 10:22:25 +0000 |
---|---|---|
committer | Thomas Vander Stichele <thomas@apestaart.org> | 2003-01-10 10:22:25 +0000 |
commit | be876ae57756d21690adfc29cc16c1791643be23 (patch) | |
tree | 0053f251da40d1b9ac828eda03d9900151fa5b47 /ext/shout2 | |
parent | e116d853418a37824413fe6cb21c772fada744d3 (diff) |
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
Diffstat (limited to 'ext/shout2')
-rw-r--r-- | ext/shout2/gstshout2.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; } } |