log: dynamically load the logger API

This commit is contained in:
Wim Taymans 2017-06-06 16:53:16 +02:00
parent b4fdcbd322
commit 0af8377d10
14 changed files with 134 additions and 200 deletions

View file

@ -993,7 +993,9 @@ static const struct spa_node proxy_node = {
static int
proxy_init(struct proxy *this,
struct spa_dict *info, const struct spa_support *support, uint32_t n_support)
struct spa_dict *info,
const struct spa_support *support,
uint32_t n_support)
{
uint32_t i;
@ -1005,7 +1007,7 @@ proxy_init(struct proxy *this,
else if (strcmp(support[i].type, SPA_TYPE_LOOP__DataLoop) == 0)
this->data_loop = support[i].data;
}
if (this->data_loop == NULL) {
if (this->main_loop == NULL) {
spa_log_error(this->log, "a main-loop is needed");
}
if (this->data_loop == NULL) {