Mercurial > audlegacy-plugins
diff src/crossfade/crossfade.c @ 3144:de2f796d6f04
crossfade: fix preprocessor conditional compilation
author | Michal Lipski <tallica@o2.pl> |
---|---|
date | Sat, 09 May 2009 18:06:58 +0200 |
parents | 40e5d243971e |
children |
line wrap: on
line diff
--- a/src/crossfade/crossfade.c Sat May 09 17:57:43 2009 +0200 +++ b/src/crossfade/crossfade.c Sat May 09 18:06:58 2009 +0200 @@ -1852,7 +1852,6 @@ return; } -#if defined(COMPILE_FOR_AUDACIOUS) && AUDACIOUS_ABI_VERSION >= 2 /* HACK: to distinguish between STOP and EOP, check Audacious' input_playing() variable. It seems to be TRUE at this point only when the end of the playlist is reached. @@ -1864,16 +1863,6 @@ */ if (xfplayer_input_playing()) playing = FALSE; -#else - /* HACK: use patched XMMS 'input_stopped_for_restart' */ - if (input_stopped_for_restart && *input_stopped_for_restart) - { - DEBUG(("[crossfade] close: playback will restart soon\n")); - output_restart = TRUE; - } - else - output_restart = FALSE; -#endif if (playing) { @@ -2042,7 +2031,6 @@ if (!file) file = g_strdup(xfplaylist_get_songtitle(pos)); -#if defined(COMPILE_FOR_AUDACIOUS) /* HACK: special handling for audacious, which just calls flush(0) on a songchange */ if (file && last_filename && strcmp(file, last_filename) != 0) { @@ -2055,7 +2043,6 @@ DEBUG(("[crossfade] flush: filename changed, forcing close/reopen... done\n")); return; } -#endif /* lock buffer */ MUTEX_LOCK(&buffer_mutex);