Merge pull request #305 from chme/streamsetup

Reduce dependency to media file in stream setup methods
This commit is contained in:
ejurgensen
2016-11-26 17:43:24 +01:00
committed by GitHub
8 changed files with 33 additions and 35 deletions

View File

@@ -491,7 +491,7 @@ httpd_stream_file(struct evhttp_request *req, int id)
stream_cb = stream_chunk_xcode_cb;
st->xcode = transcode_setup(mfi, XCODE_PCM16_HEADER, &st->size);
st->xcode = transcode_setup(mfi->data_kind, mfi->path, mfi->song_length, XCODE_PCM16_HEADER, &st->size);
if (!st->xcode)
{
DPRINTF(E_WARN, L_HTTPD, "Transcoding setup failed, aborting streaming\n");