Commit 3f48284e authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

XvMC: Compile Fixes, b_shm removal, and obvious typos... subpicture_sys_t...

XvMC: Compile Fixes, b_shm removal, and obvious typos... subpicture_sys_t still undeclared, no idea why it is around...

parent 78d012cc
...@@ -810,7 +810,7 @@ static int xxmc_setup_subpictures( vout_thread_t *p_vout, ...@@ -810,7 +810,7 @@ static int xxmc_setup_subpictures( vout_thread_t *p_vout,
XLockDisplay( p_vout->p_sys->p_display ); XLockDisplay( p_vout->p_sys->p_display );
msg_Dbg(p_vout, "xxmc_setup_subpictures"); msg_Dbg(p_vout, "xxmc_setup_subpictures");
#ifdef HAVE_SYS_SHM_H #ifdef HAVE_SYS_SHM_H
if( p_vout->p_sys->b_shm ) if( p_vout->p_sys->i_shm_opcode )
{ {
/* Create image using XShm extension */ /* Create image using XShm extension */
p_vout->p_sys->subImage = CreateShmImage( p_vout, p_vout->p_sys->subImage = CreateShmImage( p_vout,
...@@ -841,7 +841,7 @@ static int xxmc_setup_subpictures( vout_thread_t *p_vout, ...@@ -841,7 +841,7 @@ static int xxmc_setup_subpictures( vout_thread_t *p_vout,
p_vout->p_sys->xvmc_palette = (char *) malloc( sp->num_palette_entries p_vout->p_sys->xvmc_palette = (char *) malloc( sp->num_palette_entries
* sp->entry_bytes ); * sp->entry_bytes );
xxmc_xvmc_free_subpicture( p_vout, sp); xxmc_xvmc_free_subpicture( p_vout, sp);
if( !p_vout->p_sys->xvmc_pallette ) if( !p_vout->p_sys->xvmc_palette )
return VLC_EGENERIC; return VLC_EGENERIC;
p_vout->p_sys->hwSubpictures = 1; p_vout->p_sys->hwSubpictures = 1;
} }
...@@ -970,7 +970,7 @@ static XvMCSurface *xxmc_xvmc_alloc_surface( vout_thread_t *p_vout, ...@@ -970,7 +970,7 @@ static XvMCSurface *xxmc_xvmc_alloc_surface( vout_thread_t *p_vout,
if( !handler->surfInUse[i] ) if( !handler->surfInUse[i] )
{ {
XVMCLOCKDISPLAY( p_vout->p_sys->p_display ); XVMCLOCKDISPLAY( p_vout->p_sys->p_display );
if( Success != XvMCCreateSurface( p_vout->p_sys->p_display if( Success != XvMCCreateSurface( p_vout->p_sys->p_display,
context, context,
handler->surfaces + i) ) handler->surfaces + i) )
{ {
...@@ -1317,7 +1317,7 @@ static void dispose_ximage( vout_thread_t *p_vout, XShmSegmentInfo *shminfo, ...@@ -1317,7 +1317,7 @@ static void dispose_ximage( vout_thread_t *p_vout, XShmSegmentInfo *shminfo,
XvImage *myimage ) XvImage *myimage )
{ {
# ifdef HAVE_SYS_SHM_H # ifdef HAVE_SYS_SHM_H
if( p_vout->p_sys->b_shm ) if( p_vout->p_sys->i_shm_opcode )
{ {
XShmDetach( p_vout->p_sys->p_display, shminfo ); XShmDetach( p_vout->p_sys->p_display, shminfo );
XFree( myimage ); XFree( myimage );
...@@ -1340,11 +1340,11 @@ static void dispose_ximage( vout_thread_t *p_vout, XShmSegmentInfo *shminfo, ...@@ -1340,11 +1340,11 @@ static void dispose_ximage( vout_thread_t *p_vout, XShmSegmentInfo *shminfo,
void xvmc_vld_frame( picture_t *picture ) void xvmc_vld_frame( picture_t *picture )
{ {
vout_sys_t *p_sys = picture->p_sys; picture_sys_t *p_sys = picture->p_sys;
vout_thread_t *p_vout = p_sys->p_vout; vout_thread_t *p_vout = p_sys->p_vout;
vlc_vld_frame_t *vft = &(p_sys->xxmc_data.vld_frame); vlc_vld_frame_t *vft = &(p_sys->xxmc_data.vld_frame);
picture_t *ff = (picture_t *) vft->forward_reference_picture; picture_t *ff = (picture_t *) vft->forward_reference_picture;
picture_t *bf = (picture_t *) vft->backward_reference_picture; picture_t *bf = (picture_t *) vft->backward_reference_picture;
XvMCMpegControl ctl; XvMCMpegControl ctl;
XvMCSurface *fs=0, *bs=0; XvMCSurface *fs=0, *bs=0;
XvMCQMatrix qmx; XvMCQMatrix qmx;
...@@ -1418,7 +1418,7 @@ void xvmc_vld_frame( picture_t *picture ) ...@@ -1418,7 +1418,7 @@ void xvmc_vld_frame( picture_t *picture )
void xvmc_vld_slice( picture_t *picture ) void xvmc_vld_slice( picture_t *picture )
{ {
vout_sys_t *p_sys = picture->p_sys; picture_sys_t *p_sys = picture->p_sys;
vout_thread_t *p_vout = p_sys->p_vout; vout_thread_t *p_vout = p_sys->p_vout;
xvmc_context_reader_lock( &p_vout->p_sys->xvmc_lock ); xvmc_context_reader_lock( &p_vout->p_sys->xvmc_lock );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment