From b1cd1b54131abb1d472915bb1cfe46e0a8ad634e Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Fri, 18 Jul 2014 12:27:39 -0700 Subject: [PATCH] upnphttp: fix requests for the last byte of a file Philips TV's apparently do this with MKV files (SF bug #180). --- upnphttp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upnphttp.c b/upnphttp.c index 7ea193e..5cf500b 100644 --- a/upnphttp.c +++ b/upnphttp.c @@ -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 )