diff options
-rw-r--r-- | conf.c | 3 | ||||
-rw-r--r-- | playlist.c | 1 | ||||
-rw-r--r-- | plugins.c | 11 | ||||
-rw-r--r-- | streamer.c | 1 |
4 files changed, 16 insertions, 0 deletions
@@ -52,7 +52,10 @@ conf_free (void) { next = it->next; conf_item_free (it); } + conf_items = NULL; + changed = 0; mutex_free (mutex); + mutex = 0; } int @@ -162,6 +162,7 @@ pl_free (void) { mutex_plt = 0; } #endif + playlist = NULL; } #if DEBUG_LOCKING @@ -996,6 +996,17 @@ plug_unload_all (void) { g_gui_names[i] = NULL; } plugins_tail = NULL; + + memset (g_plugins, 0, sizeof (g_plugins)); + memset (g_gui_names, 0, sizeof (g_gui_names)); + g_num_gui_names = 0; + memset (g_decoder_plugins, 0, sizeof (g_decoder_plugins)); + memset (g_vfs_plugins, 0, sizeof (g_vfs_plugins)); + memset (g_dsp_plugins, 0, sizeof (g_dsp_plugins)); + memset (g_output_plugins, 0, sizeof (g_output_plugins)); + output_plugin = NULL; + memset (g_playlist_plugins, 0, sizeof (g_playlist_plugins)); + trace ("all plugins had been unloaded\n"); } @@ -1580,6 +1580,7 @@ streamer_dsp_init (void) { int streamer_init (void) { + streaming_terminate = 0; #if WRITE_DUMP out = fopen ("out.raw", "w+b"); #endif |