g3dvl/xvmc: fix a stupid of by one bug
authorChristian König <deathsimple@vodafone.de>
Sat, 2 Apr 2011 18:29:27 +0000 (20:29 +0200)
committerChristian König <deathsimple@vodafone.de>
Sat, 2 Apr 2011 18:29:27 +0000 (20:29 +0200)
src/gallium/state_trackers/xorg/xvmc/surface.c

index 67dc57d43440c4713c30a64a0ab5876021b04471..23f97b3dac5f6cd42d05005f51805da8a77d1a8b 100644 (file)
@@ -155,7 +155,7 @@ unmap_and_flush_surface(XvMCSurfacePrivate *surface)
 
    assert(surface);
 
-   for ( i = 0; i < 3; ++i ) {
+   for ( i = 0; i < 2; ++i ) {
       if (surface->ref_surfaces[i]) {
          XvMCSurfacePrivate *ref = surface->ref_surfaces[i]->privData;