[MPlayer-dev-eng] Re: [PATCH] xscreensaver timeout for short files
Tobias Diedrich
ranma at gmx.at
Thu Feb 26 21:44:53 CET 2004
Joseph Parmelee wrote:
> Attached is a short patch to fix xscreensaver timeouts during a sequence or
> loop of files shorter than 30 seconds.
Thanks. I committed a different fix (Using the video clock was a stupid
idea in the first place).
--
/* Tobias */ int main(int a,char **b) /* PGP: http://9ac7e0bc.2ya.com */
{char i,j,t,*r=*++b;srand(time());for(;*r;){for(;*r&&!isalpha(*r);r++);for(i=1;
isalpha(r[i+1]);i++){j=rand()%i;t=r[i];r[i]=r[++j];r[j]=t;}r+=i+1;}puts(*b);}
More information about the MPlayer-dev-eng
mailing list