add getOffset and fix pvrparse for that
[enigma2.git] / lib / dvb / pvrparse.cpp
index 58b215ba00cabcca9278c5eae018dfe347e01269..bde43765595c0b46459a56471f0f564bca980eae 100644 (file)
@@ -208,9 +208,7 @@ off_t eMPEGStreamInformation::getAccessPoint(pts_t ts)
        off_t last = 0;
        for (std::map<off_t, pts_t>::const_iterator i(m_access_points.begin()); i != m_access_points.end(); ++i)
        {
-               std::map<off_t, pts_t>::const_iterator d = m_timestamp_deltas.find(i->first);
-               if (d != m_timestamp_deltas.end())
-                       delta = d->second;
+               pts_t delta = getDelta(i->first);
                pts_t c = i->second - delta;
                if (c > ts)
                        break;