From: Christian König Date: Tue, 12 Apr 2011 19:51:41 +0000 (+0200) Subject: xvmc: fix compiler warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87e81a3e9db1a30f6f31e6e91aeb5acfdc8b589f;p=mesa.git xvmc: fix compiler warning --- 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);