diff src/psf2/plugin.c @ 2738:d0011cde16b7

blah blah blah
author William Pitcock <nenolod@atheme.org>
date Mon, 30 Jun 2008 20:46:42 -0500
parents 62cc6d667119
children f16fdcabe069
line wrap: on
line diff
--- a/src/psf2/plugin.c	Mon Jun 30 20:20:53 2008 -0500
+++ b/src/psf2/plugin.c	Mon Jun 30 20:46:42 2008 -0500
@@ -144,18 +144,14 @@
 	}
 
 	// now did we identify it above or just fall through?
-	if (types[type].sig != 0xffffffff)
-	{
-		printf("File identified as %s\n", types[type].name);
-	}
-	else
+	if (types[type].sig == 0xffffffff)
 	{
 		printf("ERROR: File is unknown, signature bytes are %02x %02x %02x %02x\n", buffer[0], buffer[1], buffer[2], buffer[3]);
 		free(buffer);
 		return -1;
 	}
 
-	if ((*types[type].start)(buffer, size) != AO_SUCCESS)
+	if (psf2_start(buffer, size) != AO_SUCCESS)
 	{
 		free(buffer);
 		printf("ERROR: Engine rejected file!\n");
@@ -166,8 +162,6 @@
 	m1sdr_SetCallback(psf2_gen);
 	m1sdr_PlayStart();
 
-	printf("\n\nPlaying.  Press CTRL-C to stop.\n");
-
 	while (1)
 	{
 		m1sdr_TimeCheck();