Fixed write flush behavior when seeking backwards in the write buffer, then try to flush the write buffer via transferFrom(ReadableByteChannel, long) and cleaned up the variable order in the write flush method.
Fixed write flush behavior when seeking backwards in the write buffer, then try to flush the write buffer via transferFrom(ReadableByteChannel, long) and cleaned up the variable order in the write flush method.

tmiranda1962/sagetv-1,jlverhagen/sagetv,skiingwiz/sagetv,jusjoken/sagetv,JustFred51/sagetv,OpenSageTV/sagetv,BartokW/sagetv,jfthibert/sagetv,jason-bean/sagetv,tmiranda1962/sagetv-1,JREkiwi/sagetv,andyvshr/sagetv,jusjoken/sagetv,skiingwiz/sagetv,OpenSageTV/sagetv,BartokW/sagetv,andyvshr/sagetv,jason-bean/sagetv,google/sagetv,enternoescape/sagetv,enternoescape/sagetv,jfthibert/sagetv,andyvshr/sagetv,jfthibert/sagetv,BartokW/sagetv,gasinger/sagetv,gasinger/sagetv,jusjoken/sagetv,enternoescape/sagetv,JREkiwi/sagetv,tmiranda1962/sagetv-1,google/sagetv,webernissle/sagetv,webernissle/sagetv,jlverhagen/sagetv,tmiranda1962/sagetv-1,stuckless/sagetv,enternoescape/sagetv,BartokW/sagetv,webernissle/sagetv,JREkiwi/sagetv,jlverhagen/sagetv,JustFred51/sagetv,stuckless/sagetv,google/sagetv,stuckless/sagetv,gasinger/sagetv,OpenSageTV/sagetv,jlverhagen/sagetv,OpenSageTV/sagetv,stuckless/sagetv,JustFred51/sagetv,andyvshr/sagetv,jfthibert/sagetv,gasinger/sagetv,webernissle/sagetv,jusjoken/sagetv,skiingwiz/sagetv,google/sagetv,jason-bean/sagetv,JustFred51/sagetv,JREkiwi/sagetv,jason-bean/sagetv,skiingwiz/sagetv