Two burglars looking for blank CDs in California instead found a man’s child pornography stash and turned him in, Fox40 Sacramento reported Wednesday.

One juvenile and a 19-year-old broke into Kraig Stockard barn in Delhi, Calif., on Sept. 12 and stole 50 CD-Rs, which Stockard later reported stolen.

"I'm kind of surprised that he wanted to draw attention to himself, knowing what was taken," Deputy Tom McKenzie of the Merced County Sheriff's Department told Fox40.

When the pair took the CDs home to burn music, they discovered that more than 30 of them contained child porn.

They reported the contents of the discs to the sheriff’s department.

"[A] family member convinced the two suspects to come forward, they contacted law enforcement," McKenzie said.

Investigators served a search warrant on Stockard’s property and found three desktop computers and three laptops. It’s unknown what those computer contain, but authorities believe Stockard has been downloading the images and movies since 2004.

He was booked into jail for possession of child pornography and posted his $25,000 bail.

The two people that found the pornography were not arrested for the burglary.

"We did not actually go out and arrest the suspects for the burglary. They were obviously the lesser of two evils," McKenzie told Fox40.

The burglars' case has been turned over to the Merced County District Attorney’s Office for review.

Click here to watch video about the unexpected find from Fox40 Sacramento.