Re: [FFmpeg-devel] Patch for IPC SHM

2019-07-23 Thread Aran.Clauson
From: Chad Fraleigh > > On 7/22/2019 11:14 AM, aran.clau...@wwu.edu wrote: > >> +static void rm_shmid(AVFormatContext *s) { >> +XCBGrabContext *c = s->priv_data; >> +if(c->shmid != -1) { >> + shmctl(c->shmid, IPC_RMID, 0); >> + c->shmid == -1; > ^^ > Assign

Re: [FFmpeg-devel] Patch for IPC SHM

2019-07-22 Thread Aran.Clauson
From: Carl Eugen Hoyos Subject: Re: [FFmpeg-devel] Patch for IPC SHM Date: Mon, 22 Jul 2019 19:23:35 +0200 > > > >> Am 22.07.2019 um 18:10 schrieb : >> >> All, >> >> I have encountered an error in libavdevice/xcbgrab.c that prevents NetBSD >> from >> using X11grab. When xcbgrab_frame_shm calls

[FFmpeg-devel] Patch for IPC SHM

2019-07-22 Thread Aran.Clauson
All, I have encountered an error in libavdevice/xcbgrab.c that prevents NetBSD from using X11grab. When xcbgrab_frame_shm calls allocate_shm, it creates a private shared memory region, attaches to that memory, sends the id to the server, but then removes the shared memory ID. On NetBSD with xorg