diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-11-27 19:36:18 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-11-27 19:36:18 +0000 |
commit | f6dcc9370590cc0fba2d766aa8fb0bdfd9ca0bd5 (patch) | |
tree | 3063dca4fbdef7b5f12d1899b3fd29556ad9de42 /libavdevice | |
parent | a5a61fac3b5897552b5d017b427786bb5fa4368c (diff) | |
download | ffmpeg-f6dcc9370590cc0fba2d766aa8fb0bdfd9ca0bd5.tar.gz |
Add nomouse option to not record the mouse cursor.
Implements issue877
Originally committed as revision 20633 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/x11grab.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c index 3f052fb3da..524bdd15db 100644 --- a/libavdevice/x11grab.c +++ b/libavdevice/x11grab.c @@ -65,6 +65,7 @@ struct x11_grab XImage *image; /**< X11 image holding the grab */ int use_shm; /**< !0 when using XShm extension */ XShmSegmentInfo shminfo; /**< When using XShm, keeps track of XShm infos */ + int nomouse; }; /** @@ -95,6 +96,7 @@ x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) offset = strchr(param, '+'); if (offset) { sscanf(offset, "%d,%d", &x_off, &y_off); + x11grab->nomouse= strstr(offset, "nomouse"); *offset= 0; } @@ -383,7 +385,7 @@ x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt) } } - { + if(!s->nomouse){ paint_mouse_pointer(image, s); } |