ldac: Set eqmid in caps

We set the eqmid in caps to be usable downstream by rtpldacpay for
knowing the frame count.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1804>
This commit is contained in:
Sanchayan Maity 2022-02-24 20:26:46 +05:30 committed by Tim-Philipp Müller
parent e025703d31
commit e445c8042a

View file

@ -231,6 +231,9 @@ gst_ldac_enc_do_negotiate (GstAudioEncoder * audio_enc)
output_caps = gst_caps_fixate (output_caps);
gst_caps_set_simple (output_caps, "framed", G_TYPE_BOOLEAN, TRUE, NULL);
/* Set EQMID in caps to be used downstream by rtpldacpay */
gst_caps_set_simple (output_caps, "eqmid", G_TYPE_INT, enc->eqmid, NULL);
GST_INFO_OBJECT (enc, "output caps %" GST_PTR_FORMAT, output_caps);
if (enc->channels == 1)