diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 14fabeea0113612c2f3673d202f8765906f0f137..68e2e0fbed3341095a3f6ea984ea1f922ae5eb8e 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -174,7 +174,12 @@ x11grab_read_header(AVFormatContext *s1) offset = strchr(dpyname, '+'); if (offset) { sscanf(offset, "%d,%d", &x_off, &y_off); - x11grab->draw_mouse = !strstr(offset, "nomouse"); + if (strstr(offset, "nomouse")) { + av_log(s1, AV_LOG_WARNING, + "'nomouse' specification in argument is deprecated: " + "use 'draw_mouse' option with value 0 instead\n"); + x11grab->draw_mouse = 0; + } *offset= 0; }