playbin2: handle GST_PLAY_FLAG_FORCE_SW_DECODERS
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Sun, 3 Nov 2019 14:37:44 +0000 (15:37 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Thu, 9 Jan 2020 12:28:32 +0000 (12:28 +0000)
commitf3182a88b169653aff10b97f730fbf5f7cb655c2
treef641a2c02ff6207226b4dc65e4954e44d3d844e8
parentd50c71708a1dd2be120bc4b46c38cb09084a9cba
playbin2: handle GST_PLAY_FLAG_FORCE_SW_DECODERS

Added `force-sw-decoders` boolean property in decodebin2 and
uridecodebin. By default the property is %FALSE and it bypass the new
code. Otherwise the factory list is filtered removing decoders
within 'Hardware' class.

uridecodebin sets the `force-sw-decoders` property in its internal
decodebin, and also filters out Hardware class in the
autoplug-factories default signal handler.

playbin2 adds by default GST_PLAY_FLAG_FORCE_SW_DECODERS it its flags
property, and depending on it playbin2 sets the `force-sw-decoders`
property on its internal uridecodebin, also filters out the Hardware
class decoding decoders at the autoplug-factories signal handler.
gst/playback/gstdecodebin2.c
gst/playback/gstplaybin2.c
gst/playback/gsturidecodebin.c