playbin3: handle GST_PLAY_FLAG_FORCE_SW_DECODERS
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 3 Nov 2019 14:52:28 +0000 (15:52 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 9 Jan 2020 12:28:32 +0000 (12:28 +0000)
commitf4bcf8290b3568690dacf0dac95af7f7036f7110
tree3bf4d2d2851c2f7acf5d6adeab53cd6a2ac63d4c
parentf3182a88b169653aff10b97f730fbf5f7cb655c2
playbin3: handle GST_PLAY_FLAG_FORCE_SW_DECODERS

In decodebin3 and uridecodebin3 the `force-sw-decoders` boolean property is
added. In uridecodebin3 it is only a proxy property which will forward
the value to decodebin3.

When decodebin3 has `force-sw-decoders` disabled, it will filter out in its
decoder and decodable factories those elements within the 'Hardware'
class, at reconfiguring output stream.

playbin3 adds by default GST_PLAY_FLAG_FORCE_SW_DECODERS, and sets
`force-sw-decoders` property accordingly to its internal uridecodebin, also
filters out the 'Hardware' class decoder elements when caps
negotiation.
gst/playback/gstdecodebin3.c
gst/playback/gstplaybin3.c
gst/playback/gsturidecodebin3.c