glememory: only store and act on the map flags on first/last map/unmap
authorMatthew Waters <matthew@centricular.com>
Fri, 20 Feb 2015 07:42:23 +0000 (18:42 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:55 +0000 (19:31 +0000)
commitaf023d7c95c3246e02791de14bf31f33a30072eb
tree067dc56ad75da4dd0e5b97638a232548f470af48
parent345f1dfb645441b36a8adbacf0b0b3f5fba7f4aa
glememory: only store and act on the map flags on first/last map/unmap

Anytime else, we have no idea how to match up map and unmaps.
We also don't know exactly how the calling code is using us.
Also fixes the case where we're trying to transfer while someone else
is accessing our data pointer or texture resulting in mismatched video
frames.

https://bugzilla.gnome.org/show_bug.cgi?id=744839
gst-libs/gst/gl/gstglmemory.c
gst-libs/gst/gl/gstglmemory.h