summaryrefslogtreecommitdiffstats
path: root/ext/swfdec
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2003-01-10 10:22:25 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2003-01-10 10:22:25 +0000
commit424db0d3aea0ce26a35ba381b4e439f32e50c961 (patch)
treecf1e32dcea1deec9b9c8802af89b2cce9ac5b175 /ext/swfdec
parent562e0b2526c75e98dfe790dba5fa50a0be0a95d3 (diff)
downloadgst-plugins-bad-424db0d3aea0ce26a35ba381b4e439f32e50c961.tar.gz
gst-plugins-bad-424db0d3aea0ce26a35ba381b4e439f32e50c961.tar.bz2
gst-plugins-bad-424db0d3aea0ce26a35ba381b4e439f32e50c961.zip
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/swfdec')
-rw-r--r--ext/swfdec/gstswfdec.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/swfdec/gstswfdec.c b/ext/swfdec/gstswfdec.c
index 497717f9..8ec93e4d 100644
--- a/ext/swfdec/gstswfdec.c
+++ b/ext/swfdec/gstswfdec.c
@@ -388,13 +388,13 @@ gst_swfdec_vo_destroy (GstSwfdec *swfdec)
static GstPadConnectReturn
gst_swfdec_connect(GstPad *pad, GstCaps *caps)
{
- return GST_PAD_CONNECT_DELAYED;
+ return GST_PAD_LINK_DELAYED;
}
#endif
#if 0
static void
-src_disconnected(GstPad *srcpad, GstPad *sinkpad, GstSwfdec *plugin)
+src_unlinked(GstPad *srcpad, GstPad *sinkpad, GstSwfdec *plugin)
{
GST_DEBUG(GST_CAT_PADS, "removing pad %s:%s",
GST_DEBUG_PAD_NAME(srcpad));
@@ -433,9 +433,9 @@ gst_swfdec_request_new_pad (GstElement *element, GstPadTemplate *templ,
srcpad = gst_pad_new_from_template(templ, "audio_00");
gst_element_add_pad(GST_ELEMENT(plugin), srcpad);
- g_signal_connect(G_OBJECT(srcpad), "disconnected",
- G_CALLBACK(src_disconnected), plugin);
- gst_pad_set_connect_function(srcpad, gst_swfdec_connect);
+ g_signal_connect(G_OBJECT(srcpad), "unlinked",
+ G_CALLBACK(src_unlinked), plugin);
+ gst_pad_set_link_function(srcpad, gst_swfdec_connect);
plugin->audiopad = srcpad;
}else if(strcmp("video", template) == 0){
#endif
@@ -445,9 +445,9 @@ gst_swfdec_request_new_pad (GstElement *element, GstPadTemplate *templ,
srcpad = gst_pad_new_from_template(templ, "video_00");
gst_element_add_pad(GST_ELEMENT(plugin), srcpad);
- g_signal_connect(G_OBJECT(srcpad), "disconnected",
- G_CALLBACK(src_disconnected), plugin);
- gst_pad_set_connect_function(srcpad, gst_swfdec_connect);
+ g_signal_connect(G_OBJECT(srcpad), "unlinked",
+ G_CALLBACK(src_unlinked), plugin);
+ gst_pad_set_link_function(srcpad, gst_swfdec_connect);
plugin->videopad = srcpad;
}else{
g_warning("swfdec: request new pad with bad template\n");