Skip to content

gst-utils: prevent dead lock when requesting key unit

Guillaume Desmottes requested to merge gdesmott/gstreamer-rs:consumer-lock into main

Sending the UpstreamForceKeyUnitEvent using gst_element_send_event() internally takes the state lock. If appsink is pre-rolling we are also holding the preroll lock.

This may result in a dead lock with the thread doing the state change as this one takes the state lock and then the pre-roll lock.

Merge request reports

Loading