changeset 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 76f5bcf547d5
files src/crossfade/cfgutil.c src/crossfade/crossfade.c
diffstat 2 files changed, 0 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/src/crossfade/cfgutil.c	Sat May 09 17:57:43 2009 +0200
+++ b/src/crossfade/cfgutil.c	Sat May 09 18:06:58 2009 +0200
@@ -380,11 +380,7 @@
 		DEBUG(("[crossfade] load_config: error loading config, using defaults\n"));
 
 #ifdef PRESET_SUPPORT
-#ifdef COMPILE_FOR_AUDACIOUS
 	filename = g_strconcat(g_get_home_dir(), "/.audacious/crossfade-presets", NULL);
-#else
-	filename = g_strconcat(g_get_home_dir(), "/.xmms/crossfade-presets", NULL);
-#endif
 	scan_presets(filename);
 	g_free(filename);
 #endif
--- 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);