diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 25f5323ca9..1518720812 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -1975,7 +1975,7 @@ gst_play_sink_sink_event (GstPad * pad, GstObject * parent, GstEvent * event, } GST_DEBUG_OBJECT (pad, "Forwarding event %" GST_PTR_FORMAT, event); - ret = gst_proxy_pad_event_default (pad, parent, gst_event_ref (event)); + ret = gst_pad_event_default (pad, parent, gst_event_ref (event)); if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) { const GstSegment *segment; @@ -2214,7 +2214,7 @@ gst_play_sink_text_src_event (GstPad * pad, GstObject * parent, goto out; } - ret = gst_proxy_pad_event_default (pad, parent, gst_event_ref (event)); + ret = gst_pad_event_default (pad, parent, gst_event_ref (event)); out: gst_event_unref (event); diff --git a/gst/playback/gstplaysinkconvertbin.c b/gst/playback/gstplaysinkconvertbin.c index 9a86d555a4..81619dc835 100644 --- a/gst/playback/gstplaysinkconvertbin.c +++ b/gst/playback/gstplaysinkconvertbin.c @@ -272,7 +272,7 @@ gst_play_sink_convert_bin_sink_event (GstPad * pad, GstObject * parent, break; } - ret = gst_proxy_pad_event_default (pad, parent, gst_event_ref (event)); + ret = gst_pad_event_default (pad, parent, gst_event_ref (event)); if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) { GstSegment seg; @@ -464,7 +464,7 @@ gst_play_sink_convert_bin_query (GstPad * pad, GstObject * parent, break; } default: - res = gst_proxy_pad_query_default (pad, parent, query); + res = gst_pad_query_default (pad, parent, query); break; } return res; diff --git a/gst/playback/gstsubtitleoverlay.c b/gst/playback/gstsubtitleoverlay.c index e7b0d98a9f..2b4aff7456 100644 --- a/gst/playback/gstsubtitleoverlay.c +++ b/gst/playback/gstsubtitleoverlay.c @@ -1772,7 +1772,7 @@ gst_subtitle_overlay_src_proxy_event (GstPad * proxypad, GstObject * parent, event = NULL; ret = TRUE; } else { - ret = gst_proxy_pad_event_default (proxypad, parent, event); + ret = gst_pad_event_default (proxypad, parent, event); event = NULL; } @@ -1859,7 +1859,7 @@ gst_subtitle_overlay_video_sink_event (GstPad * pad, GstObject * parent, break; } - ret = gst_proxy_pad_event_default (pad, parent, gst_event_ref (event)); + ret = gst_pad_event_default (pad, parent, gst_event_ref (event)); if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) { GST_DEBUG_OBJECT (pad, "segment event: %" GST_PTR_FORMAT, event); @@ -1999,7 +1999,6 @@ static GstPadLinkReturn gst_subtitle_overlay_subtitle_sink_link (GstPad * pad, GstPad * peer) { GstSubtitleOverlay *self = GST_SUBTITLE_OVERLAY (gst_pad_get_parent (pad)); - GstPadLinkReturn ret; GstCaps *caps; GST_DEBUG_OBJECT (pad, "Linking pad to peer %" GST_PTR_FORMAT, peer); @@ -2026,10 +2025,9 @@ gst_subtitle_overlay_subtitle_sink_link (GstPad * pad, GstPad * peer) gst_caps_unref (caps); } - ret = gst_ghost_pad_link_default (pad, peer); - gst_object_unref (self); - return ret; + + return GST_PAD_LINK_OK; } static void @@ -2045,8 +2043,6 @@ gst_subtitle_overlay_subtitle_sink_unlink (GstPad * pad) GST_DEBUG_OBJECT (pad, "Pad unlinking"); gst_caps_replace (&self->subcaps, NULL); - gst_ghost_pad_unlink_default (pad); - GST_SUBTITLE_OVERLAY_LOCK (self); self->subtitle_error = FALSE; @@ -2117,7 +2113,7 @@ gst_subtitle_overlay_subtitle_sink_event (GstPad * pad, GstObject * parent, break; } - ret = gst_proxy_pad_event_default (pad, parent, gst_event_ref (event)); + ret = gst_pad_event_default (pad, parent, gst_event_ref (event)); if (GST_EVENT_TYPE (event) == GST_EVENT_SEGMENT) { const GstSegment *eventsegment;