GStreamer: flush the current frame when stopping a media player.
authorYoann Lopes <yoann.lopes@theqtcompany.com>
Tue, 24 Mar 2015 16:32:28 +0000 (17:32 +0100)
committerYoann Lopes <yoann.lopes@theqtcompany.com>
Wed, 27 May 2015 12:18:50 +0000 (12:18 +0000)
commit8143aff1b293501f2ea37b98affbadd936e55f9b
tree2481ecdfe0c09db729484d55c956b7cbc9c1b409
parent83d1255080ab2be678efbbc42e259c9681619619
GStreamer: flush the current frame when stopping a media player.

When stopping, we don't actually stop the GStreamer pipeline, we just
pause it and prevent preroll frames from being shown.
We also need to make sure the last presented frame is cleared in that
case, otherwise it stays on screen.
Fixed for both 0.10 and 1.0.

Change-Id: Ibe26a7567f271ae0c3d8819eb9d35d6a95da1c6a
Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
src/gsttools/qgstvideorenderersink.cpp
src/gsttools/qvideosurfacegstsink.cpp
src/multimedia/gsttools_headers/qgstvideorenderersink_p.h
src/multimedia/gsttools_headers/qvideosurfacegstsink_p.h