diff options
Diffstat (limited to 'gst/law/mulaw-decode.c')
-rw-r--r-- | gst/law/mulaw-decode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/law/mulaw-decode.c b/gst/law/mulaw-decode.c index d93c6904..8e27c8fc 100644 --- a/gst/law/mulaw-decode.c +++ b/gst/law/mulaw-decode.c @@ -46,6 +46,7 @@ static void gst_mulawdec_chain (GstPad *pad, GstBuffer *buf); static GstElementClass *parent_class = NULL; //static guint gst_stereo_signals[LAST_SIGNAL] = { 0 }; +/* static GstPadNegotiateReturn mulawdec_negotiate_sink (GstPad *pad, GstCaps **caps, gint counter) { @@ -64,7 +65,7 @@ mulawdec_negotiate_sink (GstPad *pad, GstCaps **caps, gint counter) gst_caps_set(tempcaps,"width",GST_PROPS_INT(16)); gst_caps_set(tempcaps,"signed",GST_PROPS_BOOLEAN(TRUE)); - if (gst_pad_set_caps (mulawdec->srcpad, tempcaps)) + if (gst_pad_try_set_caps (mulawdec->srcpad, tempcaps)) { return GST_PAD_NEGOTIATE_AGREE; } @@ -73,6 +74,7 @@ mulawdec_negotiate_sink (GstPad *pad, GstCaps **caps, gint counter) return GST_PAD_NEGOTIATE_FAIL; } } +*/ GType gst_mulawdec_get_type(void) { @@ -114,7 +116,7 @@ gst_mulawdec_init (GstMuLawDec *mulawdec) { mulawdec->sinkpad = gst_pad_new_from_template(mulawdec_sink_template,"sink"); mulawdec->srcpad = gst_pad_new_from_template(mulawdec_src_template,"src"); - gst_pad_set_negotiate_function(mulawdec->sinkpad, mulawdec_negotiate_sink); + //gst_pad_set_negotiate_function(mulawdec->sinkpad, mulawdec_negotiate_sink); gst_element_add_pad(GST_ELEMENT(mulawdec),mulawdec->sinkpad); gst_pad_set_chain_function(mulawdec->sinkpad,gst_mulawdec_chain); |