Skip to content

Commit

Permalink
vnsi: fix playing time
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Feb 18, 2015
1 parent 2fb0fc2 commit 97f042e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/pvr.vdr.vnsi/addon/addon.xml.in
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
5 changes: 3 additions & 2 deletions addons/pvr.vdr.vnsi/src/VNSIDemux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 97f042e

Please sign in to comment.