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/1797>
This commit is contained in:
Sanchayan Maity 2022-02-24 20:26:46 +05:30
parent 7cebd5b359
commit 7c9a315578

View file

@ -231,6 +231,9 @@ gst_ldac_enc_do_negotiate (GstAudioEncoder * audio_enc)
output_caps = gst_caps_fixate (output_caps); output_caps = gst_caps_fixate (output_caps);
gst_caps_set_simple (output_caps, "framed", G_TYPE_BOOLEAN, TRUE, NULL); 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); GST_INFO_OBJECT (enc, "output caps %" GST_PTR_FORMAT, output_caps);
if (enc->channels == 1) if (enc->channels == 1)