From 06698504cafb9d3b87674c51bbd49dbbb6a54db0 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Thu, 11 Feb 2010 20:03:10 +0100 Subject: playlist thread-safety measures --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index c5914531..fab717ad 100644 --- a/main.c +++ b/main.c @@ -563,7 +563,8 @@ main (int argc, char *argv[]) { } - conf_load (); // required by some plugin at startup + pl_init (); + conf_load (); // required by some plugins at startup messagepump_init (); // required to push messages while handling commandline plug_load_all (); // required to add files to playlist from commandline @@ -639,11 +640,11 @@ main (int argc, char *argv[]) { plug_unload_all (); // at this point we can simply do exit(0), but let's clean up for debugging - pl_free (); conf_free (); messagepump_free (); plt_free (); plug_free_decoder_ids (); + pl_free (); sigterm_handled = 1; fprintf (stderr, "hej-hej!\n"); return 0; -- cgit v1.2.3