mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez5: enable logging for codecs
Add codec->set_log for setting the logging object for each codec. Bump codec API.
This commit is contained in:
parent
d29aafd857
commit
889d507e9c
2 changed files with 7 additions and 1 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include <spa/support/plugin.h>
|
||||
#include <spa/pod/pod.h>
|
||||
#include <spa/pod/builder.h>
|
||||
#include <spa/support/log.h>
|
||||
|
||||
#include "a2dp-codec-caps.h"
|
||||
|
||||
|
|
@ -43,7 +44,7 @@
|
|||
|
||||
#define SPA_TYPE_INTERFACE_Bluez5CodecA2DP SPA_TYPE_INFO_INTERFACE_BASE "Bluez5:Codec:A2DP:Private"
|
||||
|
||||
#define SPA_VERSION_BLUEZ5_CODEC_A2DP 4
|
||||
#define SPA_VERSION_BLUEZ5_CODEC_A2DP 5
|
||||
|
||||
struct spa_bluez5_codec_a2dp {
|
||||
struct spa_interface iface;
|
||||
|
|
@ -146,6 +147,8 @@ struct a2dp_codec {
|
|||
|
||||
int (*reduce_bitpool) (void *data);
|
||||
int (*increase_bitpool) (void *data);
|
||||
|
||||
void (*set_log) (struct spa_log *global_log);
|
||||
};
|
||||
|
||||
struct a2dp_codec_config {
|
||||
|
|
|
|||
|
|
@ -138,6 +138,9 @@ static int load_a2dp_codecs_from(struct impl *impl, const char *factory_name, co
|
|||
|
||||
spa_log_debug(impl->log, "loaded A2DP codec %s from %s", c->name, factory_name);
|
||||
|
||||
if (c->set_log)
|
||||
c->set_log(impl->log);
|
||||
|
||||
impl->codecs[impl->n_codecs++] = c;
|
||||
++n_codecs;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue