]> git.sesse.net Git - vlc/blobdiff - modules/video_filter/filter_common.h
also scale I420/YV12. (untested) (btw, why don't we use the "normal" scaling modules...
[vlc] / modules / video_filter / filter_common.h
index 97858608548aeb2fbb92b0206be5e59adf1c655d..07ffd4a8f01623c6260348f70aa7e04584b7bee7 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
  * filter_common.h: Common filter functions
  *****************************************************************************
- * Copyright (C) 2001, 2002, 2003 VideoLAN
- * $Id: filter_common.h,v 1.4 2003/10/24 21:27:06 gbazin Exp $
+ * Copyright (C) 2001, 2002, 2003 the VideoLAN team
+ * $Id$
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -18,7 +18,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 #define ALLOCATE_DIRECTBUFFERS( i_max ) \
@@ -43,7 +43,7 @@
         }                                                                     \
                                                                               \
         /* Allocate the picture */                                            \
-        vout_AllocatePicture( p_vout, p_pic, p_vout->output.i_chroma,         \
+        vout_AllocatePicture( VLC_OBJECT(p_vout), p_pic, p_vout->output.i_chroma, \
                               p_vout->output.i_width,                         \
                               p_vout->output.i_height,                        \
                               p_vout->output.i_aspect );                      \
@@ -78,16 +78,14 @@ static int SetParentVal( vlc_object_t *p_this, char const *psz_var,
     var_AddCallback( newvout, "mouse-x", SendEvents, p_vout );                \
     var_AddCallback( newvout, "mouse-y", SendEvents, p_vout );                \
     var_AddCallback( newvout, "mouse-moved", SendEvents, p_vout );            \
-    var_AddCallback( newvout, "mouse-clicked", SendEvents, p_vout );          \
-    var_AddCallback( newvout, "key-pressed", SendEvents, p_vout )
+    var_AddCallback( newvout, "mouse-clicked", SendEvents, p_vout );
 
 #define DEL_CALLBACKS( newvout, handler ) \
     var_DelCallback( newvout, "fullscreen", SetParentVal, p_vout );           \
     var_DelCallback( newvout, "mouse-x", SendEvents, p_vout );                \
     var_DelCallback( newvout, "mouse-y", SendEvents, p_vout );                \
     var_DelCallback( newvout, "mouse-moved", SendEvents, p_vout );            \
-    var_DelCallback( newvout, "mouse-clicked", SendEvents, p_vout );          \
-    var_DelCallback( newvout, "key-pressed", SendEvents, p_vout )
+    var_DelCallback( newvout, "mouse-clicked", SendEvents, p_vout );
 
 #define ADD_PARENT_CALLBACKS( handler ) \
     var_AddCallback( p_vout, "fullscreen", handler, NULL );                   \