gst_pad_get_current_caps() may be wrong when there is a renegotiation in progress for the pad and we have not yet received or selected the buffer with different caps yet. Fix by storing the caps through in a similar way to the existing code for buffer/video-info selection machinery. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/813>