fix no more working teletext / ac3
[enigma2.git] / lib / dvb / pvrparse.cpp
index d6978301447dde39d1f1ab2516421fb42f88ce5b..1b827d3c03d8ac98ec81d52c08e5dfa01d1ac3e7 100644 (file)
@@ -146,7 +146,7 @@ int eMPEGStreamInformation::fixupPTS(const off_t &offset, pts_t &ts)
        std::multimap<pts_t, off_t>::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);
@@ -219,7 +219,6 @@ pts_t eMPEGStreamInformation::getInterpolated(off_t offset)
 off_t eMPEGStreamInformation::getAccessPoint(pts_t ts)
 {
                /* FIXME: more efficient implementation */
-       pts_t delta = 0;
        off_t last = 0;
        for (std::map<off_t, pts_t>::const_iterator i(m_access_points.begin()); i != m_access_points.end(); ++i)
        {