upnphttp: fix requests for the last byte of a file
Philips TV's apparently do this with MKV files (SF bug #180).
This commit is contained in:
parent
5b3c6a3645
commit
b1cd1b5413
@ -1264,7 +1264,7 @@ send_file(struct upnphttp * h, int sendfd, off_t offset, off_t end_offset)
|
||||
int try_sendfile = 1;
|
||||
#endif
|
||||
|
||||
while( offset < end_offset )
|
||||
while( offset <= end_offset )
|
||||
{
|
||||
#if HAVE_SENDFILE
|
||||
if( try_sendfile )
|
||||
|
Loading…
x
Reference in New Issue
Block a user