vaapidecoder: no wmv profiles gstreamer 1.4/1.2
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Tue, 14 Jul 2015 17:39:20 +0000 (19:39 +0200)
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
Wed, 15 Jul 2015 11:38:23 +0000 (13:38 +0200)
commit1b76561d958461d5daba9fed712f06660c45d645
tree170359162f1ee78f3a2d5d3a89d226b3af78819b
parent3ccb198b513dc6ad287fe44117d03bec4d6a966a
vaapidecoder: no wmv profiles gstreamer 1.4/1.2

This patch fix the auto-plugging problem in gstreamer 1.2 and gstreamer 1.4

Right now there is not a primary ranked parser for vc1 and the demuxers
delivers caps without specifying the profile. This situation is not an issue
for avdec_vc1 but for vaapidecode it is, which refuses to negotiate without a
explicit profile defined in the negotiated caps.

Nonetheless, in gstreamer 1.5 it seems not to be a problem since the
negotiation admits caps subsets try outs.

This patch solves the issue ignoring the profile negotiation in the caps. For
gstreamer < 1.5 the profile string is not handled, so the auto-plugging get
done without the vc1 parser, such as happens in gstreamer 1.5.

Signed-off-by: Víctor Manuel Jáquez Leal <victorx.jaquez@intel.com>
gst-libs/gst/vaapi/gstvaapiprofile.c