                     _timer.stop();
                     seek(-1, _tags_callback);
                     return;
-                } else if (loadstatus == LOADING_WAITING) {
-                    // seqnum not available in playlist
-                    _frag_loading = false;
                 }
             }
         }
 
         public function seek(position : Number, callback : Function) : void {
             // reset IO Error when seeking
-            _frag_load_error = _key_load_error = false;
             _frag_retry_count = _key_retry_count = 0;
             _frag_retry_timeout = _key_retry_timeout = 1000;
-            _frag_loading = false;
+            _loading_state = LOADING_IDLE;
             _tags_callback = callback;
             _seek_pos = position;
             _fragment_first_loaded = false;

        /** Store the manifest data. **/
        private function _levelLoadedHandler(event : HLSEvent) : void {
            _last_loaded_level = event.level;
        };

        /** triggered by demux, it should return the audio track to be parsed */

                    if ((_levels[level].fragments.length == 0) || (_hls.type == HLSTypes.LIVE && _last_loaded_level != level)) {
                        // playlist not yet received
                        CONFIG::LOGGING {
                            Log.debug("_checkLoading : playlist not received for level:" + level);
                        }
                        _loading_state = LOADING_WAITING_LEVEL_UPDATE;
                    } else {
                        _loading_state = _loadnextfragment(_level, _frag_previous);
                    }
                } else {
                    // no need to load any new fragment, buffer is full already
                    return;
                }
                if (_loading_state == LOADING_STALLED) {
                    /* it means PTS requested is smaller than playlist start PTS.
                    it could happen on live playlist :
                    - if bandwidth available is lower than lowest quality needed bandwidth
