[Mplayer-cvslog] CVS: main mplayer.c,1.649,1.650

Arpi of Ize arpi at mplayerhq.hu
Sun Jan 12 23:41:12 CET 2003


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv24912

Modified Files:
	mplayer.c 
Log Message:
The following patch adds a call to srand() with the current time at the
start of main(). It makees "-shuffle" to works as expected.
Krister Lagerstrom <krister at kmlager.com>


Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.649
retrieving revision 1.650
diff -u -r1.649 -r1.650
--- mplayer.c	12 Jan 2003 19:41:37 -0000	1.649
+++ mplayer.c	12 Jan 2003 22:40:51 -0000	1.650
@@ -656,6 +656,8 @@
 
 int gui_no_filename=0;
 
+  srand((int) time(NULL)); 
+
   mp_msg_init();
   mp_msg_set_level(MSGL_STATUS);
 



More information about the MPlayer-cvslog mailing list