From 24b5ac0a6b6be752fa8e2f368506d67df4d48bd8 Mon Sep 17 00:00:00 2001 From: "T. Lohmar" Date: Sun, 11 Jan 2015 13:02:29 +0100 Subject: differentiation of PNG and JPG covrs --- responsememblk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responsememblk.c b/responsememblk.c index ba36aa5..22c3b40 100755 --- a/responsememblk.c +++ b/responsememblk.c @@ -489,7 +489,7 @@ int cResponseMemBlk::sendMp4Covr() { *mResponseMessage = string(meta.mCovr, meta.mCovrSize) ; // read bytestream - sendHeaders(200, "OK", NULL, "image/png", mResponseMessage->size(), -1); + sendHeaders(200, "OK", NULL, (meta.mCovrType == 14) ? "image/png" : "image/jpg" , mResponseMessage->size(), -1); #endif return OKAY; -- cgit v1.2.3