Freescale / gstreamer-imx

GStreamer 1.0 plugins for i.MX platforms
Other
182 stars 127 forks source link

imxvpudec/enc: Stop waiting for the codec thread on FLUSH_START and b… #308

Closed sdroege closed 2 years ago

sdroege commented 2 years ago

…efore chaining up in change_state in PAUSED->READY

Otherwise the streaming thread might still be blocked in handle_frame() while the thread that sent FLUSH_START/changed state is assuming that everything is unblocking ASAP and waits for the streaming thread to actually stop.