]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
shout, shout, let it all out, this is the ram we were talkin about
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Oct 2008 21:50:50 +0000 (21:50 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 14 Oct 2008 21:50:50 +0000 (21:50 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10017 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/formats/mod_shout/mod_shout.c

index 64ebaac0edf89dead5758abeb6f0421b7be51ad9..c3815d7475e4f0e31c3206083115a5ef29976b72 100644 (file)
@@ -189,7 +189,6 @@ static inline void free_context(shout_context_t *context)
                }
 
                if (context->mh) {
-                       mpg123_close(context->mh);
                        mpg123_delete(context->mh);
                }
        }
@@ -456,7 +455,7 @@ static size_t stream_callback(void *ptr, size_t size, size_t nmemb, void *data)
                                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 @@ static switch_status_t shout_file_seek(switch_file_handle_t *handle, unsigned in
                                *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);