mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-26 00:31:12 +00:00
lavd/x11grab: deprecate "nomouse" specification in filename
Favor draw_mouse option. Should simplify parsing, and make it more robust.
This commit is contained in:
parent
be2b885738
commit
4270d8c04d
@ -174,7 +174,12 @@ x11grab_read_header(AVFormatContext *s1)
|
|||||||
offset = strchr(dpyname, '+');
|
offset = strchr(dpyname, '+');
|
||||||
if (offset) {
|
if (offset) {
|
||||||
sscanf(offset, "%d,%d", &x_off, &y_off);
|
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;
|
*offset= 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user