                         /* when probing PTS, take previous sequence number as reference if possible */
                         new_seqnum = Math.min(frag_previous.seqnum + 1, _levels[level].getLastSeqNumfromContinuity(frag_previous.continuity));
                         new_seqnum = Math.max(new_seqnum, _levels[level].getFirstSeqNumfromContinuity(frag_previous.continuity));
-                        _pts_loading_in_progress = true;
+                        _pts_analyzing = true;
                         log_prefix = "analyzing PTS ";
                     }
                 }
             }
 
-            if (_pts_loading_in_progress == false) {
+            if (_pts_analyzing == false) {
                 if (last_seqnum == _levels[level].end_seqnum) {
                     // if last segment was last fragment of VOD playlist, notify last fragment loaded event, and return
                     if (_hls.type == HLSTypes.VOD) {

                        /* in case IO Error has been raised, stick to same level */
                        level = _level;
                        /* in case last fragment was loaded for PTS analysis, stick to same level */
                    } else if (_pts_just_loaded == true) {
                        _pts_just_loaded = false;
                        level = _level;
                        /* in case we are switching levels (waiting for playlist to reload) or seeking , stick to same level */
                    } else if (_switchlevel == true) {

                        }
                    }

                    if (_pts_analyzing == true) {
                        _pts_analyzing = false;
                        _levels[_level].updateFragment(_frag_current.seqnum, true, fragData.pts_min, fragData.pts_min + _frag_current.duration * 1000);
                        /* in case we are probing PTS, retrieve PTS info and synchronize playlist PTS / sequence number */
                        CONFIG::LOGGING {
