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:
Justin Maggard 2014-07-18 12:27:39 -07:00
parent 5b3c6a3645
commit b1cd1b5413

View File

@ -1264,7 +1264,7 @@ send_file(struct upnphttp * h, int sendfd, off_t offset, off_t end_offset)
int try_sendfile = 1; int try_sendfile = 1;
#endif #endif
while( offset < end_offset ) while( offset <= end_offset )
{ {
#if HAVE_SENDFILE #if HAVE_SENDFILE
if( try_sendfile ) if( try_sendfile )