[SCM] kodi-pvr-vdr-vnsi/master: VNSIDemux: catch VNSI_CHANNELSTREAM_CLOSE exceptions

tiber-guest at users.alioth.debian.org tiber-guest at users.alioth.debian.org
Fri Nov 4 00:20:25 UTC 2016


The following commit has been merged in the master branch:
commit 6a1f0b2e48df195faf0be7a8be40d1706b4ac10e
Author: Max Kellermann <max at duempel.org>
Date:   Mon Jul 4 14:54:55 2016 +0200

    VNSIDemux: catch VNSI_CHANNELSTREAM_CLOSE exceptions

diff --git a/src/VNSIDemux.cpp b/src/VNSIDemux.cpp
index 2e3bfca..a5f81b3 100644
--- a/src/VNSIDemux.cpp
+++ b/src/VNSIDemux.cpp
@@ -47,10 +47,14 @@ void cVNSIDemux::Close()
     cRequestPacket vrp;
     vrp.init(VNSI_CHANNELSTREAM_CLOSE);
 
-    auto resp = ReadResult(&vrp);
-    if (!resp)
-    {
-      XBMC->Log(LOG_ERROR, "%s - failed to close streaming", __FUNCTION__);
+    try {
+      auto resp = ReadResult(&vrp);
+      if (!resp)
+      {
+          XBMC->Log(LOG_ERROR, "%s - failed to close streaming", __FUNCTION__);
+      }
+    } catch (std::exception e) {
+      XBMC->Log(LOG_ERROR, "%s - %s", __FUNCTION__, e.what());
     }
   }
 

-- 
kodi-pvr-vdr-vnsi packaging



More information about the pkg-multimedia-commits mailing list