GStreamer: don't use ximagesink in QGstreamerVideoWidget.
authorYoann Lopes <yoann.lopes@theqtcompany.com>
Wed, 18 Mar 2015 15:08:56 +0000 (16:08 +0100)
committerYoann Lopes <yoann.lopes@theqtcompany.com>
Tue, 24 Mar 2015 16:03:25 +0000 (16:03 +0000)
commitd046bc67c74fef252cb213b8b9d5a1ab55f862e2
tree61b5fcd6f44eb484301336312ac160e3ba5c4985
parent4f7e5bf169868dfd0428a7f966e51dcac5a50178
GStreamer: don't use ximagesink in QGstreamerVideoWidget.

When xvimagesink is not available, we were falling back to ximagesink.
That element doesn't provide some important features: it doesn't scale
frames to the window size and doesn't support brightness, contrast, hue
and saturation adjustments. That kind of makes it useless, at least
on its own. We would need to use at least a 'videoscale' element
together with it to have it working properly.
We're better off letting QVideoWidget fall back to QVideoRendererControl
when xvimagesink is not available.

Change-Id: Ic8c62fbefa3227430e3bae24630c8b3944aabb47
Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
src/gsttools/qgstreamervideowidget.cpp