Skip to content

Instantly share code, notes, and snippets.

@elmodaddyb
Created May 30, 2018 23:38
Show Gist options
  • Save elmodaddyb/34f4a6ca9bf1ce676637d249f3f176e7 to your computer and use it in GitHub Desktop.
Save elmodaddyb/34f4a6ca9bf1ce676637d249f3f176e7 to your computer and use it in GitHub Desktop.
Gerbera Transcoding Ogg Patch
diff --git a/src/file_request_handler.cc b/src/file_request_handler.cc
index 9c64673b..0b93748d 100644
--- a/src/file_request_handler.cc
+++ b/src/file_request_handler.cc
@@ -213,6 +213,7 @@ void FileRequestHandler::get_info(IN const char* filename, OUT UpnpFileInfo* inf
}
UpnpFileInfo_set_FileLength(info, -1);
+ header = header + _("\r\nAccept-Ranges: bytes\r\n");
} else {
UpnpFileInfo_set_FileLength(info, statbuf.st_size);
// if we are dealing with a regular file we should add the
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment