Story highlights Police arrest a man on child pornography charges after a tip from two burglary suspects

The burglars found child pornography on CDs

Kraig Stockard has posted $25,000 bail

The burglary suspects have not been charged with a crime

A central California man has been arrested for possession of child pornography, thanks to a tip from burglars who robbed the man's property, authorities said.

Last month, a juvenile and a 19-year-old illegally accessed the property of Kraig Stockard, 54, of Delhi, California, according to a statement from Deputy Tom MacKenzie of the Merced County Sheriff's Department. They broke into Stockard's barn and stole about 50 CDs they believed were blank.

Stockard filed a police report on the incident on September 12, according to MacKenzie.

But the young people who stole the CDs were in for a surprise. When they began putting the discs into their computer, they discovered that some of them contained pornographic images of children, the statement said.

Despite having obtained the CDs under decidedly shady circumstances, the pair decided to report Stockard to the police.

A search warrant was served and three more computers and three laptops were taken from Stockard's home, along with several external hard drives. Police said there were thousands of pictures and movies on the CDs -- more than 30 of the 50 discs had child pornography on them.

Investigators said Stockard has been downloading indecent images of children since 2004. He has admitted possessing the pornography on the CDs but has refused to say whether there is pornography on the computers, they said. Stockard was booked for possession of child pornography and posted $25,000 bail.

The two burglar suspects who reported Stockard have not been arrested.

Their case has been sent to the Merced County District Attorney's Office for review. When reached for comment, a press officer told CNN the office could not comment on the case because one of the informants in question is a juvenile.