Commit 8dbe5f7a authored by Sanchayan Maity's avatar Sanchayan Maity 🤘🏿
Browse files

bluetooth: ldac: Fix missing check for RTP LDAC payloader element

While at it, improve the error message to include the name of the
element which was not found.

Part-of: <pulseaudio/pulseaudio!560>
parent edae28e9
Pipeline #322250 passed with stages
in 3 minutes and 45 seconds
......@@ -41,10 +41,16 @@ static bool can_be_supported(bool for_encoding) {
element_factory = gst_element_factory_find("ldacenc");
if (element_factory == NULL) {
pa_log_info("LDAC encoder not found");
pa_log_info("LDAC encoder element `ldacenc` not found");
return false;
}
gst_object_unref(element_factory);
element_factory = gst_element_factory_find("rtpldacpay");
if (element_factory == NULL) {
pa_log_info("LDAC RTP payloader element `rtpldacpay` not found");
return false;
}
gst_object_unref(element_factory);
return true;
......
Supports Markdown
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