Police in Queensland smashed the windscreen on a burning car and rescued the man inside, who was treated for head injuries.