From: Jean-Paul Saman Date: Fri, 5 Feb 2010 13:14:25 +0000 (+0100) Subject: logo: inform listeners when picture has been moved X-Git-Tag: 1.1.0-ff~182 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2f58aad41bc538569712f7d528dc7cd014d81dd4;p=vlc logo: inform listeners when picture has been moved --- diff --git a/modules/video_filter/logo.c b/modules/video_filter/logo.c index 6eba7a8c73..37f8eeedd2 100644 --- a/modules/video_filter/logo.c +++ b/modules/video_filter/logo.c @@ -231,7 +231,6 @@ static int OpenCommon( vlc_object_t *p_this, bool b_sub ) return VLC_EGENERIC; } - /* */ p_filter->p_sys = p_sys = malloc( sizeof( *p_sys ) ); if( !p_sys ) @@ -534,6 +533,14 @@ static int Mouse( filter_t *p_filter, vlc_mouse_t *p_mouse, p_filter->fmt_in.video.i_width - i_logo_w ); p_sys->i_pos_y = __MIN( __MAX( p_sys->i_pos_y + i_dy, 0 ), p_filter->fmt_in.video.i_height - i_logo_h ); + + /* object under mouse has moved */ + var_SetBool( p_filter->p_parent, "mouse-object", true ); + } + else if( b_over ) + { + /* object under mouse stoped moving */ + var_SetBool( p_filter->p_parent, "mouse-object", false ); } if( p_sys->b_mouse_grab || b_over )