mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 06:58:16 +02:00
xvmc: fix compiler warning
This commit is contained in:
parent
4d057864d0
commit
87e81a3e9d
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue