logger: add loadable logger

This commit is contained in:
Wim Taymans 2017-06-05 15:59:11 +02:00
parent 2b5e5f29f7
commit 1feec309ec
7 changed files with 314 additions and 4 deletions

View file

@ -57,7 +57,7 @@ static int compare_value(enum spa_pod_type type, const void *r1, const void *r2)
{
const struct spa_fraction *f1 = (struct spa_fraction *) r1,
*f2 = (struct spa_fraction *) r2;
uint64_t n1, n2;
int64_t n1, n2;
n1 = ((int64_t) f1->num) * f2->denom;
n2 = ((int64_t) f2->num) * f1->denom;
if (n1 < n2)