[Mplayer-cvslog] CVS: main/libvo vo_xvmc.c,1.7,1.8
Ivan Kalvachev CVS
iive at mplayerhq.hu
Sat Nov 8 03:07:26 CET 2003
Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv13123
Modified Files:
vo_xvmc.c
Log Message:
verbosity changes, zero the whole surface_render[]
Index: vo_xvmc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_xvmc.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- vo_xvmc.c 28 Aug 2003 22:11:42 -0000 1.7
+++ vo_xvmc.c 8 Nov 2003 02:07:10 -0000 1.8
@@ -545,12 +545,12 @@
if(surface_render==NULL)
surface_render=malloc(MAX_SURFACES*sizeof(xvmc_render_state_t));//easy mem debug
+ memset(surface_render,0,MAX_SURFACES*sizeof(xvmc_render_state_t));
for(i=0; i<MAX_SURFACES; i++){
rez=XvMCCreateSurface(mDisplay,&ctx,&surface_array[i]);
if( rez != Success )
break;
- memset(&surface_render[i],0,sizeof(xvmc_render_state_t));
surface_render[i].magic = MP_XVMC_RENDER_MAGIC;
surface_render[i].data_blocks = data_blocks.blocks;
surface_render[i].mv_blocks = mv_blocks.macro_blocks;
@@ -595,7 +595,7 @@
if(num_subpic != 0 && xvfmv != NULL){
if(verbose > 3){//Print All subpicture types for debug
for(s=0;s<num_subpic;s++)
- printf(" Subpicture id 0x%08X\n",xvfmv[s].id);
+ print_xvimage_format_values(&xvfmv[s]);
}
for(s=0;s<num_subpic;s++){
@@ -608,7 +608,7 @@
subpicture_mode = BLEND_SUBPICTURE;
subpicture_info = xvfmv[s];
- print_xvimage_format_values(&subpicture_info);
+ printf(" Subpicture id 0x%08X\n",subpicture_info.id);
goto found_subpic;
}
}
@@ -1185,6 +1185,7 @@
surface_render[i].state);
}
+ memset(surface_render,0,MAX_SURFACES*sizeof(xvmc_render_state_t));//for debuging
free(surface_render);surface_render=NULL;
XvMCDestroyContext(mDisplay,&ctx);
More information about the MPlayer-cvslog
mailing list