[Freeswitch-svn] [commit] r10017 - freeswitch/trunk/src/mod/formats/mod_shout

Freeswitch SVN anthm at freeswitch.org
Tue Oct 14 17:50:51 EDT 2008


Author: anthm
Date: Tue Oct 14 17:50:50 2008
New Revision: 10017

Modified:
   freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c

Log:
shout, shout, let it all out, this is the ram we were talkin about

Modified: freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c
==============================================================================
--- freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c	(original)
+++ freeswitch/trunk/src/mod/formats/mod_shout/mod_shout.c	Tue Oct 14 17:50:50 2008
@@ -189,7 +189,6 @@
 		}
 
 		if (context->mh) {
-			mpg123_close(context->mh);
 			mpg123_delete(context->mh);
 		}
 	}
@@ -456,7 +455,7 @@
 				goto error;
 			}
 
-			mpg123_close(context->mh);
+			mpg123_delete(context->mh);
 			context->mh = our_mpg123_new(NULL, NULL);
 			mpg123_open_feed(context->mh);
 			mpg123_param(context->mh, MPG123_FORCE_RATE, context->samplerate, 0);
@@ -844,7 +843,7 @@
 				*cur_sample = fseek(context->fp, *cur_sample, whence);
 			}
 
-			mpg123_close(context->mh);
+			mpg123_delete(context->mh);
 			context->mh = our_mpg123_new(NULL, NULL);
 			mpg123_open_feed(context->mh);
 			mpg123_param(context->mh, MPG123_FORCE_RATE, context->samplerate, 0);



More information about the Freeswitch-svn mailing list