diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-18 09:52:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-04-18 09:53:37 +0100 |
commit | fa56f1062b926b15e554f46eb268a69b43dd8b9f (patch) | |
tree | c707552a478a877eb2d6ad8dc451a774f5a69a2d /src/sna/sna_video.h | |
parent | 154f7e9668bffdf565b6914a3a3e5bdfe17aa1b9 (diff) |
sna/video: Only try to set the color key once
So that we only report the error to the user a single time, and not
every frame.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_video.h')
-rw-r--r-- | src/sna/sna_video.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_video.h b/src/sna/sna_video.h index f906e95e..337f928e 100644 --- a/src/sna/sna_video.h +++ b/src/sna/sna_video.h @@ -87,7 +87,8 @@ struct sna_video { uint32_t gamma5; int color_key; - int color_key_changed; + bool color_key_changed; + bool has_color_key; /** YUV data buffers */ struct kgem_bo *old_buf[2]; |