mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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
This commit is contained in:
parent
cb8252275d
commit
8e0adba996
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue