Commit 8e0adba9 authored by Tristan Matthews's avatar Tristan Matthews Committed by Wim Taymans
Browse files

gstrtpceltpay: don't always fixate sink caps to 1 channel

The getcaps function should not fixate the channels field until we
get the encoding-params field from our srcpad's caps. Fixes #620591
parent cb825227
......@@ -186,9 +186,10 @@ gst_rtp_celt_pay_getcaps (GstBaseRTPPayload * payload, GstPad * pad)
if (frame_size)
gst_structure_set (s, "frame-size", G_TYPE_INT, frame_size, NULL);
if ((params = gst_structure_get_string (ps, "encoding-params")))
if ((params = gst_structure_get_string (ps, "encoding-params"))) {
channels = atoi (params);
gst_structure_fixate_field_nearest_int (s, "channels", channels);
gst_structure_fixate_field_nearest_int (s, "channels", channels);
}
GST_DEBUG_OBJECT (payload, "clock-rate=%d frame-size=%d channels=%d",
clock_rate, frame_size, channels);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment