Backport of "video: Convert info_to_caps to take self as const ptr" into 1.18
requested to merge tpm/gst-plugins-base:backport-mr-1008-into-1.18-video-info-to-caps-const into 1.18
Backport of !1008 (merged) "video: Convert info_to_caps to take self as const ptr".
Commits:
- 1f06cf60 video: Convert info_to_caps to take self as const ptr