mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
Commited some other changes.
Original commit message from CVS: Commited some other changes.
This commit is contained in:
parent
b2ee38575d
commit
04667da435
1 changed files with 4 additions and 2 deletions
|
@ -130,6 +130,7 @@ gst_identity_class_init (GstIdentityClass *klass)
|
||||||
gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_identity_get_property);
|
gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_identity_get_property);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
static GstPadNegotiateReturn
|
static GstPadNegotiateReturn
|
||||||
gst_identity_negotiate_src (GstPad *pad, GstCaps **caps, gpointer *data)
|
gst_identity_negotiate_src (GstPad *pad, GstCaps **caps, gpointer *data)
|
||||||
{
|
{
|
||||||
|
@ -149,17 +150,18 @@ gst_identity_negotiate_sink (GstPad *pad, GstCaps **caps, gpointer *data)
|
||||||
|
|
||||||
return gst_pad_negotiate_proxy (pad, identity->srcpad, caps);
|
return gst_pad_negotiate_proxy (pad, identity->srcpad, caps);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gst_identity_init (GstIdentity *identity)
|
gst_identity_init (GstIdentity *identity)
|
||||||
{
|
{
|
||||||
identity->sinkpad = gst_pad_new ("sink", GST_PAD_SINK);
|
identity->sinkpad = gst_pad_new ("sink", GST_PAD_SINK);
|
||||||
gst_element_add_pad (GST_ELEMENT (identity), identity->sinkpad);
|
gst_element_add_pad (GST_ELEMENT (identity), identity->sinkpad);
|
||||||
gst_pad_set_negotiate_function (identity->sinkpad, gst_identity_negotiate_sink);
|
//gst_pad_set_negotiate_function (identity->sinkpad, gst_identity_negotiate_sink);
|
||||||
|
|
||||||
identity->srcpad = gst_pad_new ("src", GST_PAD_SRC);
|
identity->srcpad = gst_pad_new ("src", GST_PAD_SRC);
|
||||||
gst_element_add_pad (GST_ELEMENT (identity), identity->srcpad);
|
gst_element_add_pad (GST_ELEMENT (identity), identity->srcpad);
|
||||||
gst_pad_set_negotiate_function (identity->srcpad, gst_identity_negotiate_src);
|
//gst_pad_set_negotiate_function (identity->srcpad, gst_identity_negotiate_src);
|
||||||
|
|
||||||
gst_element_set_loop_function (GST_ELEMENT (identity), gst_identity_loop);
|
gst_element_set_loop_function (GST_ELEMENT (identity), gst_identity_loop);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue