             flushAll();
         }
 
-        /* 
-         * if requested position is available in StreamBuffer, trim buffer 
+        /*
+         * if requested position is available in StreamBuffer, trim buffer
          * and inject from that point
-         * if seek position out of buffer, ask fragment loader to retrieve data 
+         * if seek position out of buffer, ask fragment loader to retrieve data
          */
         public function seek(position : Number) : void {
             // compute _seek_position_requested based on position and playlist type

            var duration : Number = 0;
            if (_seek_pos_reached) {
                var netStreamBuffer : Number = (_hls.stream as HLSNetStream).netStreamBufferLength;
                if (netStreamBuffer < MIN_NETSTREAM_BUFFER_SIZE) {
                    duration = MAX_NETSTREAM_BUFFER_SIZE - netStreamBuffer;
                }
            } else {
                /* seek position not reached yet. 
                 * check if buffer max position is greater than requested seek position
                 * if it is the case, then we can start injecting tags in NetStream
                 */

        }

        /* compare two tags, smallest continuity
         * then smallest pts. then discontinuity then aac/avc header then metadata, then others
         *
        return a negative number, if x should appear before y in the sorted sequence
        retun 0, if x equals y
        return a positive number, if x should appear after y in the sorted sequence*
         *
         * */
        private function compareTags(x : FLVData, y : FLVData) : Number {
            if (x.continuity != y.continuity) {
