d3dvideosink: Always lock the D3D surfaces in write mode
authorSebastian Dröge <sebastian@centricular.com>
Thu, 3 Jul 2014 17:10:26 +0000 (19:10 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 3 Jul 2014 17:10:26 +0000 (19:10 +0200)
commitc134930dbed62453fa8ab5b4713db84bfc209de0
tree1f34d24d3132a0cbd88072f3ba3c998964abe9ec
parent73c40a3132b09adaa6abf0c0a1c10e3522983d51
d3dvideosink: Always lock the D3D surfaces in write mode

Locking them in readonly mode can give different stride to mapping
in write mode, which then causes rendering to be broken.

Happened on all (many?) NVIDIA GPUs.

Thanks to voskater15@gmail.com for hinting at the problem.

https://bugzilla.gnome.org/show_bug.cgi?id=712809
sys/d3dvideosink/d3dhelpers.c