decodebin3: fix element state issue.

Kevin Song requested to merge into main

Decode bin will set video decoder state to NULL during decode bin change state from PAUSED to READY. Which cause video buffer memory leak when decode bin which use V4L2 video decoder links with appsink. Appsink returns the last gstbuffer during change state from READY to NULL. If decode bin set V4L2 video decoder to NULL during decode bin changes state from PAUSED to READY, V4L2 will close V4L2 device fd. But the last gstbuffer still hold in appsink. The video buffer will be leaked. Keep video decoder state same as decode bin can fix the memory leak issue.

Part-of: <!4951 (merged)>

Merge request reports