update_restriction_caps


Description:

public void update_restriction_caps (Caps caps)

Updates the restriction_caps of the track using the fields found in the given caps.

Each of the Structure-s in caps is compared against the existing structure with the same index in the current restriction_caps. If there is no corresponding existing structure at that index, then the new structure is simply copied to that index. Otherwise, any fields in the new structure are copied into the existing structure. This will replace existing values, and may introduce new ones, but any fields 'missing' in the new structure are left unchanged in the existing structure.

For example, if the existing restriction_caps are "video/x-raw, width=480, height=360", and the updating caps is "video/x-raw, format=I420, width=500; video/x-bayer, width=400", then the new restriction_caps after calling this will be "video/x-raw, width=500, height=360, format=I420; video/x-bayer, width=400".

Parameters:

this

A Track

caps

The caps to update the restriction-caps with