diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-12 22:40:51 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-01-12 22:40:51 +0000 |
commit | 7b00975227addb551282134ea490e1e881805f5d (patch) | |
tree | 942364ec15c11f64ff016d68b6808757eda9badb /mplayer.c | |
parent | aba06480f7ffd92623e0ff80b6fb051fec28a7f9 (diff) | |
download | mpv-7b00975227addb551282134ea490e1e881805f5d.tar.bz2 mpv-7b00975227addb551282134ea490e1e881805f5d.tar.xz |
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@kmlager.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8933 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -656,6 +656,8 @@ int i; int gui_no_filename=0; + srand((int) time(NULL)); + mp_msg_init(); mp_msg_set_level(MSGL_STATUS); |