X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Frtp%2Fgstrtpopuspay.c;h=871a18248ec2a5a08fc1ce808d9600e1e7dff996;hb=refs%2Ftags%2Fsubmit%2Ftizen%2F20210423.074026;hp=ba541344e6765739eca55ab7b90b1972555f8e16;hpb=fe943e02e483a840953870a3d7e6cba8cc1983c0;p=platform%2Fupstream%2Fgst-plugins-good.git diff --git a/gst/rtp/gstrtpopuspay.c b/gst/rtp/gstrtpopuspay.c index ba54134..871a182 100644 --- a/gst/rtp/gstrtpopuspay.c +++ b/gst/rtp/gstrtpopuspay.c @@ -39,8 +39,7 @@ static GstStaticPadTemplate gst_rtp_opus_pay_sink_template = GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, - GST_STATIC_CAPS - ("audio/x-opus, channels = (int) [1, 2], channel-mapping-family = (int) 0") + GST_STATIC_CAPS ("audio/x-opus, channel-mapping-family = (int) 0") ); static GstStaticPadTemplate gst_rtp_opus_pay_src_template = @@ -181,7 +180,7 @@ gst_rtp_opus_pay_handle_buffer (GstRTPBasePayload * basepayload, dts = GST_BUFFER_DTS (buffer); duration = GST_BUFFER_DURATION (buffer); - outbuf = gst_rtp_buffer_new_allocate (0, 0, 0); + outbuf = gst_rtp_base_payload_allocate_output_buffer (basepayload, 0, 0, 0); gst_rtp_copy_audio_meta (basepayload, outbuf, buffer);