When we can't find any channel or encoding-params on the caps for dynamic
payload types, set the default number of channels to 1, as the spec says we
should.
See #623209
clock_rate = 44100;
break;
default:
- /* no fixed mapping, we need channels and clock-rate */
+ /* no fixed mapping, we need clock-rate */
channels = 0;
clock_rate = 0;
break;
if (channels == 0) {
channels = gst_rtp_L16_depay_parse_int (structure, "channels", channels);
if (channels == 0) {
- goto no_channels;
+ /* channels defaults to 1 otherwise */
+ channels = 1;
}
}
GST_ERROR_OBJECT (depayload, "no clock-rate specified");
return FALSE;
}
-no_channels:
- {
- GST_ERROR_OBJECT (depayload, "no channels specified");
- return FALSE;
- }
}
static GstBuffer *