]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/deinterlace.c
Do not build crop video filter plugin.
[vlc] / modules / video_filter / deinterlace.c
index e4aa704fd0e74eb557a49094aaf2547be7e093aa..af6bb8c606d99b0b3b1496773ded0ebcc36a5530 100644 (file)
@@ -29,7 +29,6 @@
 # include "config.h"
 #endif
 
-#include <errno.h>
 #include <assert.h>
 
 #ifdef HAVE_ALTIVEC_H
@@ -39,7 +38,6 @@
 #include <vlc_common.h>
 #include <vlc_plugin.h>
 #include <vlc_vout.h>
-#include <vlc_sout.h>
 #include <vlc_filter.h>
 #include <vlc_cpu.h>
 
@@ -496,10 +494,12 @@ static int MouseEvent( vlc_object_t *p_this, char const *psz_var,
     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 );
 }
 
 /*****************************************************************************
@@ -2063,7 +2063,6 @@ static int OpenFilter( vlc_object_t *p_this )
 
     if( Create( VLC_OBJECT(p_vout) ) != VLC_SUCCESS )
     {
-        vlc_object_detach( p_vout );
         vlc_object_release( p_vout );
         return VLC_EGENERIC;
     }
@@ -2095,7 +2094,6 @@ static void CloseFilter( vlc_object_t *p_this )
     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 );
 }