diff --git a/gst/rtp/gstrtpL16depay.c b/gst/rtp/gstrtpL16depay.c index 619f3efbe2..fec05969b3 100644 --- a/gst/rtp/gstrtpL16depay.c +++ b/gst/rtp/gstrtpL16depay.c @@ -168,9 +168,14 @@ gst_rtp_L16_depay_setcaps (GstBaseRTPDepayload * depayload, GstCaps * caps) if (clock_rate == 0) goto no_clockrate; - channels = gst_rtp_L16_depay_parse_int (structure, "channels", channels); - if (channels == 0) - goto no_channels; + channels = + gst_rtp_L16_depay_parse_int (structure, "encoding-params", channels); + if (channels == 0) { + channels = gst_rtp_L16_depay_parse_int (structure, "channels", channels); + if (channels == 0) { + goto no_channels; + } + } depayload->clock_rate = clock_rate; rtpL16depay->rate = clock_rate;