mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
PadConnect -> PadLink
Original commit message from CVS: PadConnect -> PadLink
This commit is contained in:
parent
ddce1dd0ec
commit
e976ccb298
10 changed files with 17 additions and 17 deletions
|
@ -63,7 +63,7 @@ static GstPad* gst_alsa_request_new_pad (GstElement *element, GstPadTemplate *te
|
||||||
static void gst_alsa_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
|
static void gst_alsa_set_property(GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec);
|
||||||
static void gst_alsa_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec);
|
static void gst_alsa_get_property(GObject *object, guint prop_id, GValue *value, GParamSpec *pspec);
|
||||||
static GstElementStateReturn gst_alsa_change_state(GstElement *element);
|
static GstElementStateReturn gst_alsa_change_state(GstElement *element);
|
||||||
static GstPadConnectReturn gst_alsa_connect(GstPad *pad, GstCaps *caps);
|
static GstPadLinkReturn gst_alsa_connect(GstPad *pad, GstCaps *caps);
|
||||||
|
|
||||||
static GstCaps* gst_alsa_caps (GstAlsa *this);
|
static GstCaps* gst_alsa_caps (GstAlsa *this);
|
||||||
|
|
||||||
|
@ -752,7 +752,7 @@ gst_alsa_caps (GstAlsa *this)
|
||||||
/*
|
/*
|
||||||
* Negotiates the caps, "borrowed" from gstosssink.c
|
* Negotiates the caps, "borrowed" from gstosssink.c
|
||||||
*/
|
*/
|
||||||
GstPadConnectReturn
|
GstPadLinkReturn
|
||||||
gst_alsa_connect(GstPad *pad, GstCaps *caps)
|
gst_alsa_connect(GstPad *pad, GstCaps *caps)
|
||||||
{
|
{
|
||||||
GstAlsa *this;
|
GstAlsa *this;
|
||||||
|
|
|
@ -167,7 +167,7 @@ gst_vorbisenc_class_init (VorbisEncClass * klass)
|
||||||
gstelement_class->change_state = gst_vorbisenc_change_state;
|
gstelement_class->change_state = gst_vorbisenc_change_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadLinkReturn
|
||||||
gst_vorbisenc_sinkconnect (GstPad * pad, GstCaps * caps)
|
gst_vorbisenc_sinkconnect (GstPad * pad, GstCaps * caps)
|
||||||
{
|
{
|
||||||
VorbisEnc *vorbisenc;
|
VorbisEnc *vorbisenc;
|
||||||
|
|
|
@ -204,7 +204,7 @@ gst_adder_parse_caps (GstAdder *adder, GstCaps *caps)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadLinkReturn
|
||||||
gst_adder_connect (GstPad *pad, GstCaps *caps)
|
gst_adder_connect (GstPad *pad, GstCaps *caps)
|
||||||
{
|
{
|
||||||
GstAdder *adder;
|
GstAdder *adder;
|
||||||
|
|
|
@ -162,7 +162,7 @@ gst_audioscale_class_init (AudioscaleClass *klass)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadLinkReturn
|
||||||
gst_audioscale_sinkconnect (GstPad * pad, GstCaps * caps)
|
gst_audioscale_sinkconnect (GstPad * pad, GstCaps * caps)
|
||||||
{
|
{
|
||||||
Audioscale *audioscale;
|
Audioscale *audioscale;
|
||||||
|
|
|
@ -180,7 +180,7 @@ videoscale_negotiate_sink (GstPad *pad, GstCaps **caps, gpointer *data)
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadLinkReturn
|
||||||
gst_videoscale_sinkconnect (GstPad *pad, GstCaps *caps)
|
gst_videoscale_sinkconnect (GstPad *pad, GstCaps *caps)
|
||||||
{
|
{
|
||||||
GstVideoscale *videoscale;
|
GstVideoscale *videoscale;
|
||||||
|
|
|
@ -162,7 +162,7 @@ gst_videotestsrc_class_init (GstVideotestsrcClass * klass)
|
||||||
gstelement_class->change_state = gst_videotestsrc_change_state;
|
gstelement_class->change_state = gst_videotestsrc_change_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadLinkReturn
|
||||||
gst_videotestsrc_srcconnect (GstPad * pad, GstCaps * caps)
|
gst_videotestsrc_srcconnect (GstPad * pad, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstVideotestsrc *videotestsrc;
|
GstVideotestsrc *videotestsrc;
|
||||||
|
|
|
@ -132,7 +132,7 @@ volume_get_bufferpool (GstPad *pad)
|
||||||
return gst_pad_get_bufferpool (filter->srcpad);
|
return gst_pad_get_bufferpool (filter->srcpad);
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadLinkReturn
|
||||||
volume_connect (GstPad *pad, GstCaps *caps)
|
volume_connect (GstPad *pad, GstCaps *caps)
|
||||||
{
|
{
|
||||||
GstVolume *filter;
|
GstVolume *filter;
|
||||||
|
@ -145,7 +145,7 @@ volume_connect (GstPad *pad, GstCaps *caps)
|
||||||
otherpad = (pad == filter->srcpad ? filter->sinkpad : filter->srcpad);
|
otherpad = (pad == filter->srcpad ? filter->sinkpad : filter->srcpad);
|
||||||
|
|
||||||
if (GST_CAPS_IS_FIXED (caps)) {
|
if (GST_CAPS_IS_FIXED (caps)) {
|
||||||
GstPadConnectReturn set_retval;
|
GstPadLinkReturn set_retval;
|
||||||
if (!volume_parse_caps (filter, caps))
|
if (!volume_parse_caps (filter, caps))
|
||||||
return GST_PAD_LINK_REFUSED;
|
return GST_PAD_LINK_REFUSED;
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,7 @@ static void gst_v4lmjpegsink_class_init (GstV4lMjpegSinkClass
|
||||||
static void gst_v4lmjpegsink_init (GstV4lMjpegSink *v4lmjpegsink);
|
static void gst_v4lmjpegsink_init (GstV4lMjpegSink *v4lmjpegsink);
|
||||||
|
|
||||||
/* the chain of buffers */
|
/* the chain of buffers */
|
||||||
static GstPadConnectReturn gst_v4lmjpegsink_sinkconnect (GstPad *pad,
|
static GstPadLinkReturn gst_v4lmjpegsink_sinkconnect (GstPad *pad,
|
||||||
GstCaps *vscapslist);
|
GstCaps *vscapslist);
|
||||||
static void gst_v4lmjpegsink_chain (GstPad *pad,
|
static void gst_v4lmjpegsink_chain (GstPad *pad,
|
||||||
GstBuffer *buf);
|
GstBuffer *buf);
|
||||||
|
@ -191,7 +191,7 @@ gst_v4lmjpegsink_init (GstV4lMjpegSink *v4lmjpegsink)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadLinkReturn
|
||||||
gst_v4lmjpegsink_sinkconnect (GstPad *pad,
|
gst_v4lmjpegsink_sinkconnect (GstPad *pad,
|
||||||
GstCaps *vscapslist)
|
GstCaps *vscapslist)
|
||||||
{
|
{
|
||||||
|
|
|
@ -64,7 +64,7 @@ static gboolean gst_v4lmjpegsrc_srcconvert (GstPad *pad,
|
||||||
gint64 src_value,
|
gint64 src_value,
|
||||||
GstFormat *dest_format,
|
GstFormat *dest_format,
|
||||||
gint64 *dest_value);
|
gint64 *dest_value);
|
||||||
static GstPadConnectReturn gst_v4lmjpegsrc_srcconnect (GstPad *pad,
|
static GstPadLinkReturn gst_v4lmjpegsrc_srcconnect (GstPad *pad,
|
||||||
GstCaps *caps);
|
GstCaps *caps);
|
||||||
static GstBuffer* gst_v4lmjpegsrc_get (GstPad *pad);
|
static GstBuffer* gst_v4lmjpegsrc_get (GstPad *pad);
|
||||||
|
|
||||||
|
@ -273,11 +273,11 @@ gst_v4lmjpegsrc_srcconvert (GstPad *pad,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadLinkReturn
|
||||||
gst_v4lmjpegsrc_srcconnect (GstPad *pad,
|
gst_v4lmjpegsrc_srcconnect (GstPad *pad,
|
||||||
GstCaps *caps)
|
GstCaps *caps)
|
||||||
{
|
{
|
||||||
GstPadConnectReturn ret_val;
|
GstPadLinkReturn ret_val;
|
||||||
GstV4lMjpegSrc *v4lmjpegsrc;
|
GstV4lMjpegSrc *v4lmjpegsrc;
|
||||||
|
|
||||||
v4lmjpegsrc = GST_V4LMJPEGSRC (gst_pad_get_parent (pad));
|
v4lmjpegsrc = GST_V4LMJPEGSRC (gst_pad_get_parent (pad));
|
||||||
|
|
|
@ -60,7 +60,7 @@ static gboolean gst_v4lsrc_srcconvert (GstPad *pad,
|
||||||
gint64 src_value,
|
gint64 src_value,
|
||||||
GstFormat *dest_format,
|
GstFormat *dest_format,
|
||||||
gint64 *dest_value);
|
gint64 *dest_value);
|
||||||
static GstPadConnectReturn gst_v4lsrc_srcconnect (GstPad *pad,
|
static GstPadLinkReturn gst_v4lsrc_srcconnect (GstPad *pad,
|
||||||
GstCaps *caps);
|
GstCaps *caps);
|
||||||
static GstBuffer* gst_v4lsrc_get (GstPad *pad);
|
static GstBuffer* gst_v4lsrc_get (GstPad *pad);
|
||||||
|
|
||||||
|
@ -239,11 +239,11 @@ gst_v4lsrc_srcconvert (GstPad *pad,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static GstPadConnectReturn
|
static GstPadLinkReturn
|
||||||
gst_v4lsrc_srcconnect (GstPad *pad,
|
gst_v4lsrc_srcconnect (GstPad *pad,
|
||||||
GstCaps *vscapslist)
|
GstCaps *vscapslist)
|
||||||
{
|
{
|
||||||
GstPadConnectReturn ret_val;
|
GstPadLinkReturn ret_val;
|
||||||
GstV4lSrc *v4lsrc;
|
GstV4lSrc *v4lsrc;
|
||||||
GstCaps *caps, *newcaps;
|
GstCaps *caps, *newcaps;
|
||||||
gint palette;
|
gint palette;
|
||||||
|
|
Loading…
Reference in a new issue