Bug 872866 - Set length of MediaResource earlier in load. r=roc