GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
- "clock-rate = (int) 90000, " "encoding-name = (string) \"THEORA\","
- /* only support inline delivery */
- "delivery-method = (string) \"inline\""
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"THEORA\""
/* All required parameters
*
* "sampling = (string) { "YCbCr-4:2:0", "YCbCr-4:2:2", "YCbCr-4:4:4" } "
GstStructure *structure;
GstRtpTheoraDepay *rtptheoradepay;
GstCaps *srccaps;
- const gchar *delivery_method;
const gchar *configuration;
gboolean res;
structure = gst_caps_get_structure (caps, 0);
- /* see how the configuration parameters will be transmitted */
- delivery_method = gst_structure_get_string (structure, "delivery-method");
-
/* read and parse configuration string */
configuration = gst_structure_get_string (structure, "configuration");
if (configuration) {
if (!gst_rtp_theora_depay_parse_configuration (rtptheoradepay, confbuf))
goto invalid_configuration;
- } else if (!delivery_method ||
- !g_ascii_strcasecmp (delivery_method, "in_band")) {
- /* headers will (also) be transmitted in the RTP packets */
- GST_DEBUG_OBJECT (rtptheoradepay, "expecting in_band configuration");
- } else if (g_str_has_prefix (delivery_method, "out_band/")) {
- /* some other method of header delivery. */
- goto unsupported_delivery_method;
- } else
- goto unsupported_delivery_method;
+ }
/* set caps on pad and on header */
srccaps = gst_caps_new_simple ("video/x-theora", NULL);
return res;
/* ERRORS */
-unsupported_delivery_method:
- {
- GST_ERROR_OBJECT (rtptheoradepay,
- "unsupported delivery-method \"%s\" specified", delivery_method);
- return FALSE;
- }
no_configuration:
{
GST_ERROR_OBJECT (rtptheoradepay, "no configuration specified");
GST_STATIC_CAPS ("application/x-rtp, "
"media = (string) \"video\", "
"payload = (int) " GST_RTP_PAYLOAD_DYNAMIC_STRING ", "
- "clock-rate = (int) 90000, " "encoding-name = (string) \"THEORA\", "
- "delivery-method = (string) \"inline\""
+ "clock-rate = (int) 90000, " "encoding-name = (string) \"THEORA\""
/* All required parameters
*
* "sampling = (string) { "YCbCr-4:2:0", "YCbCr-4:2:2", "YCbCr-4:4:4" } "
* "width = (string) [1, 1048561] (multiples of 16) "
* "height = (string) [1, 1048561] (multiples of 16) "
- * "delivery-method = (string) { inline, in_band, out_band/<specific_name> } "
* "configuration = (string) ANY"
*/
/* All optional parameters
*
* "configuration-uri ="
+ * "delivery-method = (string) { inline, in_band, out_band/<specific_name> } "
*/
)
);
"width", G_TYPE_STRING, wstr,
"height", G_TYPE_STRING, hstr,
"configuration", G_TYPE_STRING, configuration,
- "delivery-method", G_TYPE_STRING, "inline",
/* don't set the other defaults
*/
NULL);