From: Felix Domke Date: Tue, 25 Mar 2008 23:57:56 +0000 (+0000) Subject: use m_pts_to_offset X-Git-Tag: 2.6.0~1425 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/269650875b8f6de6a660b1d00cdbbdd7d0921cf8?ds=sidebyside use m_pts_to_offset --- diff --git a/lib/dvb/pvrparse.cpp b/lib/dvb/pvrparse.cpp index d6978301..a6be5c3e 100644 --- a/lib/dvb/pvrparse.cpp +++ b/lib/dvb/pvrparse.cpp @@ -146,7 +146,7 @@ int eMPEGStreamInformation::fixupPTS(const off_t &offset, pts_t &ts) std::multimap::const_iterator l = m_pts_to_offset.upper_bound(ts - 60 * 90000), u = m_pts_to_offset.upper_bound(ts + 60 * 90000), - nearest = m_access_points.end(); + nearest = m_pts_to_offset.end(); while (l != u) { @@ -154,7 +154,7 @@ int eMPEGStreamInformation::fixupPTS(const off_t &offset, pts_t &ts) nearest = l; ++l; } - if (nearest == m_access_points.end()) + if (nearest == m_pts_to_offset.end()) return 1; ts -= getDelta(nearest->second);