summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-28 20:30:20 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-28 20:30:20 +0200
commitf263abb8b777b61bcce7eee88716a137d0f880c3 (patch)
tree4e1b2c27affb8e9f3c27726b04b0fe9909cc919a /main.c
parent81d1b50a3bd28099b784e5b2a14295e715a48d01 (diff)
lastfm multithreading WIP
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 28f3ff73..885eaa9c 100644
--- a/main.c
+++ b/main.c
@@ -20,6 +20,7 @@
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
+#include <time.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/types.h>
@@ -494,6 +495,7 @@ on_trayicon_popup_menu (GtkWidget *widget,
int
main (int argc, char *argv[]) {
+ srand (time (NULL));
prctl (PR_SET_NAME, "deadbeef-main", 0, 0, 0, 0);
char *homedir = getenv ("HOME");
if (!homedir) {
@@ -653,7 +655,7 @@ main (int argc, char *argv[]) {
p_free ();
streamer_free ();
codec_free_locking ();
-
+ plug_unload_all ();
session_save (sessfile);
pl_save (defpl);
pl_free ();