changeset 11415:da41bbc78e3d

verbosity changes, zero the whole surface_render[]
author iive
date Sat, 08 Nov 2003 02:07:10 +0000
parents 8770be0a5bb5
children af8c66f215cf
files libvo/vo_xvmc.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_xvmc.c	Sat Nov 08 01:56:09 2003 +0000
+++ b/libvo/vo_xvmc.c	Sat Nov 08 02:07:10 2003 +0000
@@ -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);