# include "config.h"
#endif
-#include <errno.h>
#include <assert.h>
#ifdef HAVE_ALTIVEC_H
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_vout.h>
-#include <vlc_sout.h>
#include <vlc_filter.h>
#include <vlc_cpu.h>
vout_thread_t *p_vout = p_data;
VLC_UNUSED(p_this); VLC_UNUSED(oldval);
- if( !strcmp( psz_var, "mouse-y" ) && p_vout->p_sys->b_half_height )
- newval.i_int *= 2;
+ if( !strcmp( psz_var, "mouse-button-down" ) )
+ return var_SetChecked( p_vout, psz_var, VLC_VAR_INTEGER, newval );
- return var_Set( p_vout, psz_var, newval );
+ if( p_vout->p_sys->b_half_height )
+ newval.coords.y *= 2;
+ return var_SetChecked( p_vout, psz_var, VLC_VAR_COORDS, newval );
}
/*****************************************************************************
if( Create( VLC_OBJECT(p_vout) ) != VLC_SUCCESS )
{
- vlc_object_detach( p_vout );
vlc_object_release( p_vout );
return VLC_EGENERIC;
}
vout_thread_t *p_vout = (vout_thread_t *)p_filter->p_sys;
Destroy( VLC_OBJECT(p_vout) );
- vlc_object_detach( p_vout );
vlc_object_release( p_vout );
}