]> git.sesse.net Git - vlc/commitdiff
wayland screenshooter: add missing unlink()
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 4 Oct 2014 15:38:28 +0000 (18:38 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 4 Oct 2014 15:39:08 +0000 (18:39 +0300)
modules/access/screen/wayland.c

index 511d73661b5d9473a3eb5d11cd2460b01558ec1b..ec6648e999cfd8a2c44510a365e435bd67ee6144 100644 (file)
@@ -193,6 +193,7 @@ static block_t *Shoot(demux_t *demux)
         msg_Err(demux, "buffer creation error: %s", vlc_strerror_c(errno));
         return NULL;
     }
+    unlink(bufpath);
 
     /* NOTE: one extra line for overflow if screen-left > 0 */
     uint32_t pitch = 4u * sys->width;