[vlc-commits] wayland screenshooter: add missing unlink()

Rémi Denis-Courmont git at videolan.org
Sat Oct 4 17:39:10 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct  4 18:38:28 2014 +0300| [a65353385f485a4d2d36bcaad8ca3823a4b7880c] | committer: Rémi Denis-Courmont

wayland screenshooter: add missing unlink()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a65353385f485a4d2d36bcaad8ca3823a4b7880c
---

 modules/access/screen/wayland.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/access/screen/wayland.c b/modules/access/screen/wayland.c
index 511d736..ec6648e 100644
--- a/modules/access/screen/wayland.c
+++ b/modules/access/screen/wayland.c
@@ -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;



More information about the vlc-commits mailing list