mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
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: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/560>
This commit is contained in:
parent
edae28e9b5
commit
8dbe5f7ad4
1 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue