mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-30 09:03:23 -05:00
Use transcode variable to check for transcoding status
This commit is contained in:
parent
825569dc88
commit
6e5f49bdf9
@ -527,7 +527,7 @@ httpd_stream_file(struct evhttp_request *req, int id)
|
|||||||
* that if we are decoding because we can only guesstimate the
|
* that if we are decoding because we can only guesstimate the
|
||||||
* size in this case and the error margin is unknown and variable.
|
* size in this case and the error margin is unknown and variable.
|
||||||
*/
|
*/
|
||||||
if (!st->xcode)
|
if (!transcode)
|
||||||
{
|
{
|
||||||
ret = snprintf(buf, sizeof(buf), "%" PRIi64, (int64_t)st->size);
|
ret = snprintf(buf, sizeof(buf), "%" PRIi64, (int64_t)st->size);
|
||||||
if ((ret < 0) || (ret >= sizeof(buf)))
|
if ((ret < 0) || (ret >= sizeof(buf)))
|
||||||
|
Loading…
Reference in New Issue
Block a user