mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
playback: update for ghostpad changes
This commit is contained in:
parent
c88b55c3a9
commit
0423329f91
3 changed files with 9 additions and 13 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue