X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gst%2Frtp%2FgstrtpL8pay.c;h=6662cda916db814da606afb12eff72a55dd66b96;hb=775ccdf9775bd7051929b257444b3be915e88ec6;hp=86e7b2222350a324aca23a172f43879bc5b1057b;hpb=a12f8df0c6933af629d7d75585a42371e59e9021;p=platform%2Fupstream%2Fgst-plugins-good.git diff --git a/gst/rtp/gstrtpL8pay.c b/gst/rtp/gstrtpL8pay.c index 86e7b22..6662cda 100644 --- a/gst/rtp/gstrtpL8pay.c +++ b/gst/rtp/gstrtpL8pay.c @@ -25,13 +25,12 @@ * Payload raw audio into RTP packets according to RFC 3551. * For detailed information see: http://www.rfc-editor.org/rfc/rfc3551.txt * - * - * Example pipeline + * ## Example pipeline + * * |[ * gst-launch -v audiotestsrc ! audioconvert ! rtpL8pay ! udpsink * ]| This example pipeline will payload raw audio. Refer to * the rtpL8depay example to depayload and play the RTP stream. - * */ #ifdef HAVE_CONFIG_H @@ -196,16 +195,10 @@ gst_rtp_L8_pay_getcaps (GstRTPBasePayload * rtppayload, GstPad * pad, if (gst_structure_get_int (structure, "channels", &channels)) { gst_caps_set_simple (caps, "channels", G_TYPE_INT, channels, NULL); - } else { - /* Support any number of channels, if not explicitly specified */ - gst_structure_remove_field (structure, "channels"); } if (gst_structure_get_int (structure, "clock-rate", &rate)) { gst_caps_set_simple (caps, "rate", G_TYPE_INT, rate, NULL); - } else { - /* Support any rate, if not explicitly specified */ - gst_structure_remove_field (structure, "rate"); } }