Commit 182b4b56 authored by Ratchanan Srirattanamet's avatar Ratchanan Srirattanamet
Browse files

Gstreamer: also remove features when simplifying caps


Some element can return caps with same resolution/framerate but
different features. gst_simplify_caps() won't de-duplicate this,
resulting in duplicated entries for the same resolution/framerate.

This commit add calls to also remove features from the caps in addition
to setting name to video/x-raw.

The GST_CHECK_VERSION macro is added to maintain compatibility with
earlier version of Gstreamer without GstCapsFeatures.

[ChangeLog][CameraBin] Fixed duplicated entries in supported resolution/
framerate if the underlying element uses caps' features.

Change-Id: I15101899eb0369925013ccc1d925afb890a01205
Reviewed-by: default avatarVaL Doroshchuk <valentyn.doroshchuk@qt.io>
parent 7aa08ffa
No related merge requests found
Showing with 6 additions and 0 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment