Use transcode variable to check for transcoding status

This commit is contained in:
Julien BLACHE 2010-02-02 21:05:04 +01:00
parent 825569dc88
commit 6e5f49bdf9

View File

@ -527,7 +527,7 @@ httpd_stream_file(struct evhttp_request *req, int id)
* that if we are decoding because we can only guesstimate the
* 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);
if ((ret < 0) || (ret >= sizeof(buf)))