summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-11 20:03:10 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-11 20:03:10 +0100
commit06698504cafb9d3b87674c51bbd49dbbb6a54db0 (patch)
tree24934f001c2951e2151411693bec178717686a0d /main.c
parent70fc72b7d985394517d3d84c3c160c3476adaf32 (diff)
playlist thread-safety measures
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
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;