mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 13:13:17 -05:00
transcode fix -- wrong content type for transcoded files
This commit is contained in:
parent
a42cb7549d
commit
9245e282e8
@ -642,9 +642,17 @@ void dispatch_stream(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) {
|
||||
config_set_status(pwsc,pqi->session_id,NULL);
|
||||
db_dispose_item(pmp3);
|
||||
} else {
|
||||
// The type should really be determined by the transcoding
|
||||
// function -- it's possible that you want to transcode
|
||||
// to a lower-bitrate mp3 or something... but for now,
|
||||
// we'll just assume .wav
|
||||
ws_addresponseheader(pwsc,"Content-Type","audio/wav");
|
||||
|
||||
/*
|
||||
if(pmp3->type)
|
||||
ws_addresponseheader(pwsc,"Content-Type","audio/%s",
|
||||
pmp3->type);
|
||||
*/
|
||||
// Also content-length -heade would be nice, but since
|
||||
// we don't really know it here, so let's leave it out.
|
||||
ws_addresponseheader(pwsc,"Connection","Close");
|
||||
|
Loading…
x
Reference in New Issue
Block a user