In the case of any material seized which is alleged to have been possessed or used or intended to be used contrary to, or is evidence of a violation of, Section 11-20 of the Criminal Code of 1961 or the Criminal Code of 2012, the court before which the material is returned shall, upon written request of any person from whom the material was seized or any person claiming ownership or other right to possession of such material, enter an order providing for a hearing to determine the obscene nature thereof not more than 10 days after such return. If the material is determined to be obscene it shall be held pending further proceedings as provided by Section 108-11 of this Code. If the material is determined not to be obscene it shall be returned to the person from whom or place from which it was seized, or to the person claiming ownership or other right to possession of such material; provided that enough of the record material may be retained by the State for purposes of appellate proceedings. The decision of the court upon this hearing shall not be admissible as evidence in any other proceeding nor shall it be res judicata of any question in any other proceeding.
725 ILCS 5/108-12