diff options
author | waker <wakeroid@gmail.com> | 2011-06-07 20:53:56 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-06-12 13:40:20 +0200 |
commit | bded25b2bafd98fce08b6cdcd6276b3dcf508cbc (patch) | |
tree | 16a1981a7af2dbfdb1648fe9148c9d4d0426035e /plugins.c | |
parent | 888bb4bd239e695a6937bf5deaf97e72de79f1f6 (diff) |
few fixes to make it possible to reinitialize player after complete shutdown, without restarting process
Diffstat (limited to 'plugins.c')
-rw-r--r-- | plugins.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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"); } |