Latency patch (see also http://code.opencv.org/issues/632)