 	_onerror = onerror;
 	_levels = levels;
 	_streamBuffer = streamBuffer;
+	_discTracker = discTracker;
 	_handleParsingError = handleParsingError;
     }
 

        metrics.level = frag.level;
        metrics.id = frag.seqnum;
        var hlsError : HLSError;
        if ((_demux.audioExpected && !_fragData.audio_found) && (_demux.videoExpected && !_fragData.video_found)) {
            // handle it like a parsing error
            _handleParsingError("error parsing fragment, no tag found", _ldrs, _fragData);

    private var _hls: HLS;
    private var _levels: Vector.<Level>;
    private var _streamBuffer: StreamBuffer;
    private var _discTracker: DiscontinuityTracker;
    private var _handleParsingError: Function;

    public function FragScheduler(audioTrackController: AudioTrackController, hls: HLS, levels: Vector.<Level>, streamBuffer: StreamBuffer, discTracker: DiscontinuityTracker, oncomplete: Function, onerror: Function,
        handleParsingError: Function)
    {
        _audioTrackController = audioTrackController;
