[vlc-commits] Win32 screen access: use correct type

Rafaël Carré git at videolan.org
Wed Aug 1 15:51:24 CEST 2012


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Aug  1 15:50:37 2012 +0200| [c9be56de61d1b1971851040543e8f0cb9e64b5b3] | committer: Rafaël Carré

Win32 screen access: use correct type

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c9be56de61d1b1971851040543e8f0cb9e64b5b3
---

 modules/access/screen/win32.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/access/screen/win32.c b/modules/access/screen/win32.c
index d01a426..6c993e7 100644
--- a/modules/access/screen/win32.c
+++ b/modules/access/screen/win32.c
@@ -151,7 +151,7 @@ struct block_sys_t
 
 static void CaptureBlockRelease( block_t *p_block )
 {
-    DeleteObject( ((block_sys_t *)p_block)->hbmp );
+    DeleteObject( ((struct block_sys_t *)p_block)->hbmp );
     free( p_block );
 }
 
@@ -159,7 +159,7 @@ static block_t *CaptureBlockNew( demux_t *p_demux )
 {
     demux_sys_t *p_sys = p_demux->p_sys;
     screen_data_t *p_data = p_sys->p_data;
-    block_sys_t *p_block;
+    struct block_sys_t *p_block;
     void *p_buffer;
     int i_buffer;
     HBITMAP hbmp;
@@ -214,7 +214,7 @@ static block_t *CaptureBlockNew( demux_t *p_demux )
     }
 
     /* Build block */
-    if( !(p_block = malloc( sizeof( block_t ) + sizeof( block_sys_t ) )) )
+    if( !(p_block = malloc( sizeof( block_t ) + sizeof( struct block_sys_t ) )) )
         goto error;
 
     /* Fill all fields */



More information about the vlc-commits mailing list