v4l2sink stops to play after a few state changes between paused and playing
Submitted by Rafal
When playbin element is used with video-sink property set to v4l2sink, the pipeline stops to play after a few changes between paused and playing. Further switches between paused and playing state have no effect.
It looks the problem is caused by the v4l2sink element, more precisely by gst_v4l2_object_unlock function invoked by gst_v4l2sink_unlock. The gst_v4l2_object_unlock function invokes gst_buffer_pool_set_flushing, which sets the pool in flushing state. This infers the pool use by other threads and under certain circumstances may switch whole pipeline into flushing state.
When I did remove in code the gst_buffer_pool_set_flushing function call in gst_v4l2_object_unlock function, the problem stopped to appear.
Let me know if you need more information. Thank you.