Quoting Luca Barbato (2014-11-26 06:20:52) > Bug-Id: CID 1254664 > CC: [email protected] > --- > > libavdevice/xcbgrab.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c > index 9c78c64..e8186aa 100644 > --- a/libavdevice/xcbgrab.c > +++ b/libavdevice/xcbgrab.c > @@ -595,10 +595,10 @@ static av_cold int xcbgrab_read_header(AVFormatContext > *s) > int screen_num, ret; > const xcb_setup_t *setup; > > - c->conn = xcb_connect(s->filename, &screen_num); > + c->conn = xcb_connect(s->filename[0] ? s->filename : NULL, &screen_num);
I assume it defaults to using DISPLAY in this case? If so, the patch looks ok. -- Anton Khirnov _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
