Refactor decompression timestamp validation logic in stream component (#52462)
Refactor decompression timestamp validation logic in stream component (#52462)

* Refactor dts validation logic into a separate function

Create a decompression timestamp validation function to move the logic out of
the worker into a separate class. This also uses the python itertools.chain
to chain together the initial packets with the remaining packets in the
container iterator, removing additional inline if statements.

* Reset dts validator when container is reset

* Fix typo in a comment

* Reuse existing dts_validator when disabling audio stream
rohitranjan1991/home-assistant,GenericStudent/home-assistant,FreekingDean/home-assistant,lukas-hetzenecker/home-assistant,home-assistant/home-assistant,sander76/home-assistant,lukas-hetzenecker/home-assistant,Danielhiversen/home-assistant,nkgilley/home-assistant,toddeye/home-assistant,jawilson/home-assistant,jawilson/home-assistant,w1ll1am23/home-assistant,mezz64/home-assistant,mezz64/home-assistant,aronsky/home-assistant,toddeye/home-assistant,FreekingDean/home-assistant,rohitranjan1991/home-assistant,nkgilley/home-assistant,aronsky/home-assistant,GenericStudent/home-assistant,sander76/home-assistant,Danielhiversen/home-assistant,w1ll1am23/home-assistant,rohitranjan1991/home-assistant,home-assistant/home-assistant