diff options
author | Christian König <[email protected]> | 2011-04-12 21:51:41 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2011-04-12 21:51:41 +0200 |
commit | 87e81a3e9db1a30f6f31e6e91aeb5acfdc8b589f (patch) | |
tree | 64853c86bf0d0ba612f264deb0c662e6f2601c11 /src/gallium/state_trackers | |
parent | 4d057864d0d523c241e40ad675487276789e3b36 (diff) |
xvmc: fix compiler warning
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/xorg/xvmc/surface.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/xorg/xvmc/surface.c b/src/gallium/state_trackers/xorg/xvmc/surface.c index 59840a1394e..c8c8638e581 100644 --- a/src/gallium/state_trackers/xorg/xvmc/surface.c +++ b/src/gallium/state_trackers/xorg/xvmc/surface.c @@ -467,8 +467,10 @@ Status XvMCPutSurface(Display *dpy, XvMCSurface *surface, Drawable drawable, if(dump_window) { static unsigned int framenum = 0; char cmd[256]; + sprintf(cmd, "xwd -id %d -out xvmc_frame_%08d.xwd", (int)drawable, ++framenum); - system(cmd); + if (system(cmd) != 0) + XVMC_MSG(XVMC_ERR, "[XvMC] Dumping surface %p failed.\n", surface); } XVMC_MSG(XVMC_TRACE, "[XvMC] Pushed surface %p to front buffer.\n", surface); |