140
140
/* create the sink and src pads */
144
143
gst_pad_set_setcaps_function (gsmdec->sinkpad, gst_gsmdec_sink_setcaps);
145
144
gst_pad_set_event_function (gsmdec->sinkpad, gst_gsmdec_sink_event);
146
145
gst_pad_set_chain_function (gsmdec->sinkpad, gst_gsmdec_chain);
147
146
gst_element_add_pad (GST_ELEMENT (gsmdec), gsmdec->sinkpad);
152
150
gst_element_add_pad (GST_ELEMENT (gsmdec), gsmdec->srcpad);
154
152
gsmdec->state = gsm_create ();