diff options
Diffstat (limited to 'gst')
-rw-r--r-- | gst/replaygain/gstrgvolume.c | 4 | ||||
-rw-r--r-- | gst/rtpmanager/gstrtpclient.c | 6 | ||||
-rw-r--r-- | gst/sdp/gstsdpdemux.c | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/gst/replaygain/gstrgvolume.c b/gst/replaygain/gstrgvolume.c index 35b4f5ef..dbcfaf5d 100644 --- a/gst/replaygain/gstrgvolume.c +++ b/gst/replaygain/gstrgvolume.c @@ -341,14 +341,14 @@ gst_rg_volume_init (GstRgVolume * self, GstRgVolumeClass * gclass) GST_BIN_CLASS (parent_class)->add_element (GST_BIN_CAST (self), self->volume_element); - volume_pad = gst_element_get_pad (self->volume_element, "sink"); + volume_pad = gst_element_get_static_pad (self->volume_element, "sink"); ghost_pad = gst_ghost_pad_new_from_template ("sink", volume_pad, gst_pad_get_pad_template (volume_pad)); gst_object_unref (volume_pad); gst_pad_set_event_function (ghost_pad, gst_rg_volume_sink_event); gst_element_add_pad (GST_ELEMENT_CAST (self), ghost_pad); - volume_pad = gst_element_get_pad (self->volume_element, "src"); + volume_pad = gst_element_get_static_pad (self->volume_element, "src"); ghost_pad = gst_ghost_pad_new_from_template ("src", volume_pad, gst_pad_get_pad_template (volume_pad)); gst_object_unref (volume_pad); diff --git a/gst/rtpmanager/gstrtpclient.c b/gst/rtpmanager/gstrtpclient.c index 1bdd72fc..d3e2c673 100644 --- a/gst/rtpmanager/gstrtpclient.c +++ b/gst/rtpmanager/gstrtpclient.c @@ -151,8 +151,8 @@ create_stream (GstRtpClient * rtpclient, guint32 ssrc) gst_bin_add (GST_BIN_CAST (rtpclient), stream->ptdemux); /* link jitterbuffer and PT demuxer */ - srcpad = gst_element_get_pad (stream->jitterbuffer, "src"); - sinkpad = gst_element_get_pad (stream->ptdemux, "sink"); + srcpad = gst_element_get_static_pad (stream->jitterbuffer, "src"); + sinkpad = gst_element_get_static_pad (stream->ptdemux, "sink"); res = gst_pad_link (srcpad, sinkpad); gst_object_unref (srcpad); gst_object_unref (sinkpad); @@ -165,7 +165,7 @@ create_stream (GstRtpClient * rtpclient, guint32 ssrc) /* ghost sinkpad */ name = g_strdup_printf ("rtp_sink_%d", ssrc); - sinkpad = gst_element_get_pad (stream->jitterbuffer, "sink"); + sinkpad = gst_element_get_static_pad (stream->jitterbuffer, "sink"); stream->rtp_sink = gst_ghost_pad_new (name, sinkpad); gst_object_unref (sinkpad); g_free (name); diff --git a/gst/sdp/gstsdpdemux.c b/gst/sdp/gstsdpdemux.c index b0de0d20..45cdc3a8 100644 --- a/gst/sdp/gstsdpdemux.c +++ b/gst/sdp/gstsdpdemux.c @@ -918,7 +918,7 @@ gst_sdp_demux_stream_configure_udp (GstSDPDemux * demux, GstSDPStream * stream) NULL); /* get output pad of the UDP source. */ - pad = gst_element_get_pad (stream->udpsrc[0], "src"); + pad = gst_element_get_static_pad (stream->udpsrc[0], "src"); name = g_strdup_printf ("recv_rtp_sink_%d", stream->id); stream->channelpad[0] = gst_element_get_request_pad (demux->session, name); @@ -954,7 +954,7 @@ gst_sdp_demux_stream_configure_udp (GstSDPDemux * demux, GstSDPStream * stream) stream->channelpad[1] = gst_element_get_request_pad (demux->session, name); g_free (name); - pad = gst_element_get_pad (stream->udpsrc[1], "src"); + pad = gst_element_get_static_pad (stream->udpsrc[1], "src"); gst_pad_link (pad, stream->channelpad[1]); gst_object_unref (pad); @@ -1021,7 +1021,7 @@ gst_sdp_demux_stream_configure_udp_sink (GstSDPDemux * demux, /* and link */ if (pad) { - sinkpad = gst_element_get_pad (stream->udpsink, "sink"); + sinkpad = gst_element_get_static_pad (stream->udpsink, "sink"); gst_pad_link (pad, sinkpad); gst_object_unref (sinkpad); } else { |