/*****************************************************************************
* Preamble
*****************************************************************************/
-#define _GNU_SOURCE
-#include <stdlib.h> /* malloc(), free() */
-#include <string.h>
-#include <math.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
#include <vlc/vlc.h>
#include <vlc_vout.h>
-#ifdef HAVE_LIMITS_H
-# include <limits.h> /* INT_MAX */
-#endif
+#include <math.h>
+#include <limits.h> /* INT_MAX */
#include "vlc_filter.h"
#include "vlc_image.h"
{
filter_t *p_filter = (filter_t *)p_this;
filter_sys_t *p_sys;
- vlc_object_t *p_libvlc = p_filter->p_libvlc;
+ vlc_object_t *p_libvlc = VLC_OBJECT( p_filter->p_libvlc );
char *psz_order;
char *psz_offsets;
int i_index;
{
p_region->i_y = p_sys->pi_y_offsets[i_real_index];
}
- else if( fmt_out.i_height < row_inner_height
+ else if( fmt_out.i_height > row_inner_height
|| p_sys->b_ar || p_sys->b_keep )
{
/* we don't have to center the video since it takes the
vlc_value_t oldval, vlc_value_t newval,
void *p_data )
{
+ VLC_UNUSED(oldval);
filter_sys_t *p_sys = (filter_sys_t *) p_data;
#define VAR_IS( a ) !strcmp( psz_var, CFG_PREFIX a )