A 48-year-old Chatsworth man with two prior sex-crime convictions, including one in Gwinnett County, was sentenced Thursday to 22 years in a federal prison on a child pornography charge, authorities said.