[MPlayer-cvslog] r28601 - in trunk: libmpcodecs/vd_ffmpeg.c libvo/vo_xvmc.c

diego subversion at mplayerhq.hu
Sun Feb 15 18:35:26 CET 2009


Author: diego
Date: Sun Feb 15 18:35:24 2009
New Revision: 28601

Log:
The xmvc structure member magic_id was renamed to unique_id.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c
   trunk/libvo/vo_xvmc.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 18:29:00 2009	(r28600)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 18:35:24 2009	(r28601)
@@ -594,7 +594,7 @@ static int get_buffer(AVCodecContext *av
         if(mp_msg_test(MSGT_DECVIDEO, MSGL_DBG5))
             mp_msg(MSGT_DECVIDEO, MSGL_DBG5, "vd_ffmpeg::get_buffer (xvmc render=%p)\n", render);
         assert(render != 0);
-        assert(render->magic_id == AV_XVMC_RENDER_MAGIC);
+        assert(render->unique_id == AV_XVMC_RENDER_MAGIC);
         render->state |= AV_XVMC_STATE_PREDICTION;
     }
 #endif
@@ -683,7 +683,7 @@ static void release_buffer(struct AVCode
             if(mp_msg_test(MSGT_DECVIDEO, MSGL_DBG5))
                 mp_msg(MSGT_DECVIDEO, MSGL_DBG5, "vd_ffmpeg::release_buffer (xvmc render=%p)\n", render);
             assert(render!=NULL);
-            assert(render->magic_id==AV_XVMC_RENDER_MAGIC);
+            assert(render->unique_id == AV_XVMC_RENDER_MAGIC);
             render->state&=~AV_XVMC_STATE_PREDICTION;
         }
 #endif

Modified: trunk/libvo/vo_xvmc.c
==============================================================================
--- trunk/libvo/vo_xvmc.c	Sun Feb 15 18:29:00 2009	(r28600)
+++ trunk/libvo/vo_xvmc.c	Sun Feb 15 18:35:24 2009	(r28601)
@@ -371,7 +371,7 @@ static uint32_t xvmc_draw_image(mp_image
 
    rndr = (struct xvmc_pixfmt_render*)mpi->priv;//there is copy in plane[2]
    assert( rndr != NULL );
-   assert( rndr->magic_id == AV_XVMC_RENDER_MAGIC );
+   assert( rndr->unique_id == AV_XVMC_RENDER_MAGIC );
    if( mp_msg_test(MSGT_VO,MSGL_DBG4) )
        printf("vo_xvmc: draw_image(show rndr=%p)\n",rndr);
 // the surface have passed vf system without been skiped, it will be displayed
@@ -528,7 +528,7 @@ int vm = flags & VOFLAG_MODESWITCHING;
       rez=XvMCCreateSurface(mDisplay,&ctx,&surface_array[i]);
       if( rez != Success )
 	 break;
-      surface_render[i].magic_id = AV_XVMC_RENDER_MAGIC;
+      surface_render[i].unique_id = AV_XVMC_RENDER_MAGIC;
       surface_render[i].data_blocks = data_blocks.blocks;
       surface_render[i].mv_blocks = mv_blocks.macro_blocks;
       surface_render[i].total_number_of_mv_blocks = numblocks;
@@ -977,7 +977,7 @@ int i,cfs;
       printf("vo_xvmc: flip_page  show(rndr=%p)\n\n",p_render_surface_to_show);
 
    if(p_render_surface_to_show == NULL) return;
-   assert( p_render_surface_to_show->magic_id == AV_XVMC_RENDER_MAGIC );
+   assert( p_render_surface_to_show->unique_id == AV_XVMC_RENDER_MAGIC );
 //fixme   assert( p_render_surface_to_show != p_render_surface_visible);
 
    if(use_queue){
@@ -1122,7 +1122,7 @@ int rez;
 
    rndr = (struct xvmc_pixfmt_render*)image[2];//this is copy of priv-ate
    assert( rndr != NULL );
-   assert( rndr->magic_id == AV_XVMC_RENDER_MAGIC );
+   assert( rndr->unique_id == AV_XVMC_RENDER_MAGIC );
 
    rez = XvMCRenderSurface(mDisplay,&ctx,rndr->picture_structure,
              		   rndr->p_surface,



More information about the MPlayer-cvslog mailing list