flavioribeiro / nginx-audio-track-for-hls-module

:sound: Nginx module that generates audio track for HTTP Live Streaming (HLS) streams on the fly.
GNU General Public License v3.0
136 stars 17 forks source link

Change malloc functions to nginx's custom ones #10

Closed flavioribeiro closed 11 years ago

flavioribeiro commented 11 years ago

@wandemberg said that nginx have a pool that is destroyed after the request is terminated. It's better to use nginx's malloc/free to take advantage of this functionality

flavioribeiro commented 11 years ago

First thing to notice is Nginx's memory allocation; it takes care of the free'ing as long as the module uses ngx_palloc (a malloc wrapper) or ngx_pcalloc (a calloc wrapper).

http://www.evanmiller.org/nginx-modules-guide.html