Permalink
Browse files

Merge pull request #444 from FernetMenta/vnsi

vnsi: fix playing time
  • Loading branch information...
2 parents 2fb0fc2 + 97f042e commit 4657d8ba07a23697c8103cac9a2b1fe4a4ff5501 @FernetMenta FernetMenta committed Feb 18, 2015
Showing with 4 additions and 3 deletions.
  1. +1 −1 addons/pvr.vdr.vnsi/addon/addon.xml.in
  2. +3 −2 addons/pvr.vdr.vnsi/src/VNSIDemux.cpp
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.vdr.vnsi"
- version="1.10.1"
+ version="1.10.2"
name="VDR VNSI Client"
provider-name="FernetMenta, Team XBMC">
<requires>
@@ -257,8 +257,9 @@ bool cVNSIDemux::GetSignalStatus(PVR_SIGNAL_STATUS &qualityinfo)
time_t cVNSIDemux::GetPlayingTime()
{
- time_t ret;
- ret = m_ReferenceTime + (m_CurrentDTS - m_ReferenceDTS) / DVD_TIME_BASE;
+ time_t ret = 0;
+ if (m_ReferenceTime)
+ ret = m_ReferenceTime + (m_CurrentDTS - m_ReferenceDTS) / DVD_TIME_BASE;
return ret;
}

0 comments on commit 4657d8b

Please sign in to comment.