rtph265depay: update codec_data in caps regardless of format
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 16 Jun 2021 11:00:59 +0000 (16:30 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Wed, 16 Jun 2021 11:05:07 +0000 (16:35 +0530)
commit95f6c31c21269843419bcc61d1eb6e5708305c55
tree6284c0c1c8c8856afe54783fcc50d212c60cf988
parentaad9c8a2165b0bbee957c54262391006e81907af
rtph265depay: update codec_data in caps regardless of format

Updating of codec_data in the caps is important to propagate changes
in sps/pps/vps via NALs. Without this, downstream does not renegotiate
when upstream changes resolution.

The comment referring to rtph264pay is from 2015 and is out of date.
rtph264pay stopped doing that in 2017 with commit
dabeed52a995d27e16eba9e4617e61eb0bcd44c4

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1011>
gst/rtp/gstrtph265depay.c