[MPlayer-dev-eng] Another warning and functionality fix

Daniel Egger degger at fhm.edu
Sun Feb 24 16:52:54 CET 2002


Hija,

this patch fixes another warning and passes a uint8_t ** into
drawframe instead of a pointer to the whole struct; I hope
that right but I don't know because the code is such a mess.

-- 
Servus,
       Daniel
-------------- next part --------------
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.408
diff -u -r1.408 mplayer.c
--- mplayer.c	24 Feb 2002 12:05:12 -0000	1.408
+++ mplayer.c	24 Feb 2002 16:03:38 -0000
@@ -2812,9 +2812,9 @@
     static vo_mpegpes_t *pkg=&packet;
     packet.timestamp=sh_video->timer*90000.0;
     packet.id=0x20; /* Subpic */
-    while((packet.size=ds_get_packet_sub(d_dvdsub,&packet.data))>0){
+    while((packet.size=ds_get_packet_sub(d_dvdsub,&(pkg->data)))>0){
       mp_msg(MSGT_CPLAYER,MSGL_V,"\rDVD sub: len=%d  v_pts=%5.3f  s_pts=%5.3f  \n",packet.size,d_video->pts,d_dvdsub->pts);
-      video_out->draw_frame(&pkg);
+      video_out->draw_frame(&(pkg->data));
     }
   }else if(vo_spudec){
     unsigned char* packet=NULL;


More information about the MPlayer-dev-eng mailing list