[FFmpeg-cvslog] r20633 - trunk/libavdevice/x11grab.c

michael subversion
Fri Nov 27 20:36:18 CET 2009


Author: michael
Date: Fri Nov 27 20:36:18 2009
New Revision: 20633

Log:
Add nomouse option to not record the mouse cursor.
Implements issue877

Modified:
   trunk/libavdevice/x11grab.c

Modified: trunk/libavdevice/x11grab.c
==============================================================================
--- trunk/libavdevice/x11grab.c	Fri Nov 27 19:56:30 2009	(r20632)
+++ trunk/libavdevice/x11grab.c	Fri Nov 27 20:36:18 2009	(r20633)
@@ -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,
     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,
         }
     }
 
-    {
+    if(!s->nomouse){
         paint_mouse_pointer(image, s);
     }
 



More information about the ffmpeg-cvslog mailing list