[SCM] kodi-pvr-vdr-vnsi/master: explicitly terminate streaming when closinf demuxer
tiber-guest at users.alioth.debian.org
tiber-guest at users.alioth.debian.org
Fri Nov 4 00:20:20 UTC 2016
The following commit has been merged in the master branch:
commit eca19042bfa287f49b60ff720d08ecc13f00ff96
Author: Rainer Hochecker <fernetmenta at online.de>
Date: Sun Mar 6 20:39:36 2016 +0100
explicitly terminate streaming when closinf demuxer
diff --git a/src/VNSIDemux.cpp b/src/VNSIDemux.cpp
index 9b2cd5e..796828e 100644
--- a/src/VNSIDemux.cpp
+++ b/src/VNSIDemux.cpp
@@ -38,6 +38,27 @@ cVNSIDemux::~cVNSIDemux()
{
}
+void cVNSIDemux::Close()
+{
+ if (GetProtocol() >= 9)
+ {
+ if (IsOpen())
+ {
+ XBMC->Log(LOG_DEBUG, "closing demuxer");
+
+ cRequestPacket vrp;
+ vrp.init(VNSI_CHANNELSTREAM_CLOSE);
+
+ auto resp = ReadResult(&vrp);
+ if (!resp)
+ {
+ XBMC->Log(LOG_ERROR, "%s - failed to close streaming", __FUNCTION__);
+ }
+ }
+ }
+ cVNSISession::Close();
+}
+
bool cVNSIDemux::OpenChannel(const PVR_CHANNEL &channelinfo)
{
m_channelinfo = channelinfo;
diff --git a/src/VNSIDemux.h b/src/VNSIDemux.h
index 7b59e78..614e150 100644
--- a/src/VNSIDemux.h
+++ b/src/VNSIDemux.h
@@ -45,6 +45,7 @@ public:
cVNSIDemux();
~cVNSIDemux();
+ void Close();
bool OpenChannel(const PVR_CHANNEL &channelinfo);
void Abort();
bool GetStreamProperties(PVR_STREAM_PROPERTIES* props);
--
kodi-pvr-vdr-vnsi packaging
More information about the pkg-multimedia-commits
mailing list