playbin3: handle GST_PLAY_FLAG_FORCE_SW_DECODERS 26/230426/1
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 3 Nov 2019 14:52:28 +0000 (15:52 +0100)
committerEunhye Choi <eunhae1.choi@samsung.com>
Fri, 10 Apr 2020 02:14:19 +0000 (11:14 +0900)
commit8ec2f0b5c5e5a3bddeb46a6fe95a0ef712c428d1
tree4cdc0eee81acd9c20089c0b68b3588fd30dfe804
parent004a539f4b6d262ff10ce817766443e3bb648ab4
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.

cherry pick from upstream
commit id: f4bcf8290b3568690dacf0dac95af7f7036f7110

Change-Id: I8ccce2c891a58e272452b1af66967f037c57d571
gst/playback/gstdecodebin3.c
gst/playback/gstplaybin3.c
gst/playback/gsturidecodebin3.c