Replicate the logic from gst_video_info_from_caps so that we can avoid selecting video/x-raw caps that don't have a format.
Pull request: https://github.com/WebKit/WebKit/pull/1990
Committed 252039@main (92cc4d5d9914): <https://commits.webkit.org/252039@main> Reviewed commits have been landed. Closing PR #1990 and removing active labels.