summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorT. Lohmar <smarttv640@gmail.com>2015-01-11 13:02:29 +0100
committerT. Lohmar <smarttv640@gmail.com>2015-01-11 13:02:29 +0100
commit24b5ac0a6b6be752fa8e2f368506d67df4d48bd8 (patch)
treeb3379ce4ea8795d1ff24188a51bcddc0a079fdb8
parent38e8b842ca1c47d0eb4942626ddfdfb105e32bb2 (diff)
downloadvdr-plugin-smarttvweb-24b5ac0a6b6be752fa8e2f368506d67df4d48bd8.tar.gz
vdr-plugin-smarttvweb-24b5ac0a6b6be752fa8e2f368506d67df4d48bd8.tar.bz2
differentiation of PNG and JPG covrs
-rwxr-xr-xresponsememblk.c2
1 files changed, 1 insertions, 1 deletions
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;