From a3bae55d41f5159df3a0125f02a8fa322e81bbe3 Mon Sep 17 00:00:00 2001 From: Michał Cichoń Date: Tue, 25 Aug 2015 06:45:41 +0200 Subject: libpiano: Abstract out blowfish cipher to PianoCipher_t so different implementations than gcrypt can be used. --- src/libpiano/response.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libpiano/response.c') diff --git a/src/libpiano/response.c b/src/libpiano/response.c index 7f0cee0..783e2f0 100644 --- a/src/libpiano/response.c +++ b/src/libpiano/response.c @@ -23,7 +23,7 @@ THE SOFTWARE. #include "../config.h" -#include +#include #include #include #include @@ -273,7 +273,7 @@ PianoReturn_t PianoResponse (PianoHandle_t *ph, PianoRequest_t *req) { song->stationId = PianoJsonStrdup (s, "stationId"); song->coverArt = PianoJsonStrdup (s, "albumArtUrl"); song->detailUrl = PianoJsonStrdup (s, "songDetailUrl"); - song->fileGain = json_object_get_double ( + song->fileGain = (float)json_object_get_double ( json_object_object_get (s, "trackGain")); song->length = json_object_get_int ( json_object_object_get (s, "trackLength")); -- cgit v1.2.3