[Ffmpeg-devel] [PATCH] Make x11grab output mouse warning only once

Michael Niedermayer michaelni
Wed Jan 31 04:14:53 CET 2007


Hi

On Wed, Jan 31, 2007 at 03:01:29AM +0100, Panagiotis Issaris wrote:
> Hi,
> 
> The attached patch makes x11grab output its warning that it
> couldn't find the mouse pointer only once. This to prevent
> flooding of the terminal when grabbing from a different X screen.
> 
>  x11grab.c |    6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> I'm not sure everybody will like this, because if the "error" reoccurs,
> the warning will not. In my case, when grabbing from -f x11grab -vd x11:0.1
> while working on :0.0, the continuous outputting of warnings hides all
> useful FFmpeg info.

rejected, the existence of a mouse pointer is not a global property as
such the use of a static variable is not appropriate

if i have 2 x11grab instances i want 2 warnings or none if neither can
find the mouse

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

No great genius has ever existed without some touch of madness. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070131/0370e0ac/attachment.pgp>



More information about the ffmpeg-devel mailing list