Mercurial > audlegacy
changeset 152:274c85015c90 trunk
[svn] Remove the fucking mutex system that broke.
author | nenolod |
---|---|
date | Sat, 12 Nov 2005 14:15:48 -0800 |
parents | 0a2963adefab |
children | 37882ab04091 |
files | audacious/playback.c |
diffstat | 1 files changed, 0 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/audacious/playback.c Sat Nov 12 10:51:09 2005 -0800 +++ b/audacious/playback.c Sat Nov 12 14:15:48 2005 -0800 @@ -91,10 +91,6 @@ if (bmp_playback_get_playing()) bmp_playback_stop(); - ip_data.playback_mutex = g_mutex_new(); - - g_mutex_lock(ip_data.playback_mutex); - vis_clear_data(mainwin_vis); vis_clear_data(playlistwin_vis); svis_clear_data(mainwin_svis); @@ -118,15 +114,11 @@ playlist_check_pos_current(); mainwin_set_info_text(); - - g_mutex_unlock(ip_data.playback_mutex); } void bmp_playback_pause(void) { - g_mutex_lock(ip_data.playback_mutex); - if (!bmp_playback_get_playing()) return; @@ -141,15 +133,11 @@ playstatus_set_status(mainwin_playstatus, STATUS_PLAY); get_current_input_plugin()->pause(ip_data.paused); - - g_mutex_unlock(ip_data.playback_mutex); } void bmp_playback_stop(void) { - g_mutex_lock(ip_data.playback_mutex); - if (ip_data.playing && get_current_input_plugin()) { ip_data.playing = FALSE; @@ -170,16 +158,11 @@ } ip_data.playing = FALSE; - - g_mutex_unlock(ip_data.playback_mutex); - g_mutex_free(ip_data.playback_mutex); } void bmp_playback_stop_reentrant(void) { - g_mutex_lock(ip_data.playback_mutex); - if (ip_data.playing && get_current_input_plugin()) { ip_data.playing = FALSE; @@ -197,9 +180,6 @@ } ip_data.playing = FALSE; - - g_mutex_unlock(ip_data.playback_mutex); - g_mutex_free(ip_data.playback_mutex); } static void