Make QGstreamerPlayerSession 'VAAPI-aware'.
authorYoann Lopes <yoann.lopes@digia.com>
Thu, 11 Oct 2012 17:19:31 +0000 (19:19 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 17 Oct 2012 13:28:16 +0000 (15:28 +0200)
commitabcc1077318bda86367efeefc12a16f3455fc202
treef49f749768cac747c699091a9b2f2fe33c7482a1
parentbce5525cbbbf6f167fe05831f55218c001d042fc
Make QGstreamerPlayerSession 'VAAPI-aware'.

At the moment the GStreamer player pipeline is not setup properly when
the VAAPI plugin is available, resulting in no video being shown.

Added 'video/x-surface' as one of the default raw formats for the
decodebin.
Don't use vaapidecode when the video sink is not compatible.

This is a preliminary patch to support VAAPI. In the current state
vaapidecode will never be used as none of our video sinks support the
video/x-surface format.

Change-Id: I39f339b483d4052dd1e29c2b0ef06343d5670224
Reviewed-by: Christian Stromme <christian.stromme@digia.com>
src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.cpp
src/plugins/gstreamer/mediaplayer/qgstreamerplayersession.h