Re: Add vorbis_dsp_init() ?

Martin Guy <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <[email protected]>
 int vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb){
   int i;
   memset(vb,0,sizeof(*vb));
   vb->vd=v;
-  vb->localalloc=0;
-  vb->localstore=NULL;
   if(v->analysisp){
...
   return(0);
+}
+
+void vorbis_dsp_init(vorbis_dsp_state *v){
+  memset(v,0,sizeof(*v));
 }

Er, sorry, if you remove the initialization from an existing public
function and make a new one that existing code (obviously) doesn;t
call, isn't that likely to break existing code that calls
vorbis_block_init()?

Is this an initialization that can or must always be done when
vorbis_block_init() is called, can you not just quietly do it in
there?

    M
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.