* Payload raw audio into RTP packets according to RFC 3551.
* For detailed information see: http://www.rfc-editor.org/rfc/rfc3551.txt
*
- * <refsect2>
- * <title>Example pipeline</title>
+ * ## 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.
- * </refsect2>
*/
#ifdef HAVE_CONFIG_H
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");
}
}