[Mplayer-cvslog] CVS: main dll_init.c,1.41,1.42

Arpi of Ize arpi at mplayer.dev.hu
Mon Apr 1 19:58:06 CEST 2002


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv19574

Modified Files:
	dll_init.c 
Log Message:
audio input buffer allocation/free cleanup

Index: dll_init.c
===================================================================
RCS file: /cvsroot/mplayer/main/dll_init.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- dll_init.c	1 Apr 2002 13:25:34 -0000	1.41
+++ dll_init.c	1 Apr 2002 17:58:04 -0000	1.42
@@ -103,15 +103,12 @@
     mp_msg(MSGT_WIN32,MSGL_V,"Audio ACM output buffer min. size: %ld\n",srcsize);
 
     acmStreamSize(sh_audio->srcstream, srcsize, &srcsize, ACM_STREAMSIZEF_DESTINATION);
-    sh_audio->audio_in_minsize=srcsize; // audio input min. size
-    mp_msg(MSGT_WIN32,MSGL_V,"Audio ACM input buffer min. size: %ld\n",srcsize);
-    
-    if(srcsize<in_fmt->nBlockAlign) srcsize=in_fmt->nBlockAlign;
+//    if(srcsize<in_fmt->nBlockAlign) srcsize=in_fmt->nBlockAlign;
 
-    sh_audio->a_in_buffer_size=2*sh_audio->audio_in_minsize;
-    sh_audio->a_in_buffer=malloc(sh_audio->a_in_buffer_size);
-    sh_audio->a_in_buffer_len=0;
+    mp_msg(MSGT_WIN32,MSGL_V,"Audio ACM input buffer min. size: %ld\n",srcsize);
 
+    sh_audio->audio_in_minsize=2*srcsize; // audio input min. size
+    
     return 1;
 }
 




More information about the MPlayer-cvslog mailing list