diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-08-08 11:19:14 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-08-08 23:43:37 +0200 |
commit | 4270d8c04d354b928d2329abd1037c6f0a72c07f (patch) | |
tree | 1843c13024d7ae5d740db2ead4eda243d78ac32a /libavdevice/x11grab.c | |
parent | be2b8857380926c8008a4bb9ae769f3d99935b0e (diff) | |
download | ffmpeg-4270d8c04d354b928d2329abd1037c6f0a72c07f.tar.gz |
lavd/x11grab: deprecate "nomouse" specification in filename
Favor draw_mouse option. Should simplify parsing, and make it more
robust.
Diffstat (limited to 'libavdevice/x11grab.c')
-rw-r--r-- | libavdevice/x11grab.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 14fabeea01..68e2e0fbed 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; } |