summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY3
-rw-r--r--httptnt/resourceStreamer.ecpp7
-rw-r--r--server/webserver.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/HISTORY b/HISTORY
index 06a5802..9f37aa4 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,6 +1,7 @@
VDR Plugin 'upnp' Revision History
----------------------------------
+ - Fix: Fixed Microsoft Windows Media Player 12 support.
- New: Initial support for audio recordings, i.e. recordings from radio
stations. Live radio stations will follow very soon.
- Fix: SortCriteria should work now.
@@ -17,7 +18,7 @@ VDR Plugin 'upnp' Revision History
so-file. This makes symbolic link against the .so obsolete.
Thanks to Lars Hanisch
-2012-10-24: Version 1.0.0
+2012-10-24: Version 1.0.0 RC1
- New: Plug-ins for providing access to live-TV and recordings instead of
integrated functions. This makes it easier to replace them. Additionally,
diff --git a/httptnt/resourceStreamer.ecpp b/httptnt/resourceStreamer.ecpp
index ef9a011..a7afdac 100644
--- a/httptnt/resourceStreamer.ecpp
+++ b/httptnt/resourceStreamer.ecpp
@@ -38,7 +38,8 @@ using namespace upnp;
int code = HTTP_OK;
string codeText = "OK";
- //reply.setKeepAliveHeader();
+ // DLNA requires KeepAlive timeout of 60s.
+ reply.setKeepAliveTimeout(60000);
reply.setContentType(streamer->GetContentType());
reply.setHeader("friendlyName.dlna.org ", server->GetServerDescription().friendlyName);
reply.setHeader("contentFeatures.dlna.org ", streamer->GetContentFeatures());
@@ -53,7 +54,7 @@ using namespace upnp;
reply.setHeader("Accept-Ranges ", "bytes");
if(request.hasHeader("getAvailableSeekRange.dlna.org:")){
std::stringstream availableRangeHeader;
- availableRangeHeader << "0 bytes=0-" << contentLength;
+ availableRangeHeader << "1 bytes=0-" << contentLength;
reply.setHeader("availableSeekRange.dlna.org ", availableRangeHeader.str());
}
}
@@ -96,8 +97,6 @@ using namespace upnp;
codeText = "Partial Content";
}
- // DLNA requires KeepAlive timeout of 60s.
- reply.setKeepAliveTimeout(60000);
reply.setDirectMode(code, codeText.c_str());
size_t bytesRead = 0;
diff --git a/server/webserver.cpp b/server/webserver.cpp
index dcbec3b..e9f2615 100644
--- a/server/webserver.cpp
+++ b/server/webserver.cpp
@@ -24,8 +24,8 @@ cWebserver::cWebserver(std::string address)
}
cWebserver::~cWebserver(){
- mApplication.shutdown();
mWebserverThread.Stop();
+ Stop();
}
bool cWebserver::Start(){