diff options
author | František Dvořák <valtri@users.sourceforge.net> | 2006-03-26 14:45:41 +0000 |
---|---|---|
committer | František Dvořák <valtri@users.sourceforge.net> | 2006-03-26 14:45:41 +0000 |
commit | 6f3b838762dca7b17560aec9a059ff048def702d (patch) | |
tree | 2f00ec203d6e41685e2ca77d0d505f605996c1f8 /src | |
parent | 7d63892298684c33808770e492399e1edc76734e (diff) | |
download | xine-lib-6f3b838762dca7b17560aec9a059ff048def702d.tar.gz xine-lib-6f3b838762dca7b17560aec9a059ff048def702d.tar.bz2 |
Fixing build on MinGW:
- fixed unresolved symbol in eq2 after xine_list updates.
- replaced obsolete memalign by xine_malloc_alligned in noise post plugin,
plugin needs some cleanup due to destroying
CVS patchset: 7950
CVS date: 2006/03/26 14:45:41
Diffstat (limited to 'src')
-rw-r--r-- | src/post/planar/eq2.c | 6 | ||||
-rw-r--r-- | src/post/planar/noise.c | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/post/planar/eq2.c b/src/post/planar/eq2.c index 80821d7e6..806a4ea6c 100644 --- a/src/post/planar/eq2.c +++ b/src/post/planar/eq2.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2004 the xine project + * Copyright (C) 2000-2006 the xine project * * This file is part of xine, a free video player. * @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: eq2.c,v 1.15 2006/02/04 14:06:52 miguelfreitas Exp $ + * $Id: eq2.c,v 1.16 2006/03/26 14:45:41 valtri Exp $ * * mplayer's eq2 (soft video equalizer) * Software equalizer (brightness, contrast, gamma, saturation) @@ -477,7 +477,7 @@ static post_plugin_t *eq2_open_plugin(post_class_t *class_gen, int inputs, input_api->name = "parameters"; input_api->type = XINE_POST_DATA_PARAMETERS; input_api->data = &post_api; - xine_list_append_content(this->post.input, input_api); + xine_list_push_back(this->post.input, input_api); input->xine_in.name = "video"; output->xine_out.name = "eqd video"; diff --git a/src/post/planar/noise.c b/src/post/planar/noise.c index 2d9ec4685..1b46825db 100644 --- a/src/post/planar/noise.c +++ b/src/post/planar/noise.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2004 the xine project + * Copyright (C) 2000-2006 the xine project * * This file is part of xine, a free video player. * @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: noise.c,v 1.2 2006/02/06 12:09:42 hadess Exp $ + * $Id: noise.c,v 1.3 2006/03/26 14:45:41 valtri Exp $ * * mplayer's noise filter, ported by Jason Tackaberry. Original filter * is copyright 2002 Michael Niedermayer <michaelni@gmx.at> @@ -57,6 +57,7 @@ typedef struct noise_param_t { shiftptr; int8_t *noise, *prev_shift[MAX_RES][3]; + void *base; } noise_param_t; static int nonTempRandShift[MAX_RES]= {-1}; @@ -71,9 +72,11 @@ static int8_t *initNoise(noise_param_t *fp){ int uniform= fp->uniform; int averaged= fp->averaged; int pattern= fp->pattern; - int8_t *noise= memalign(16, MAX_NOISE*sizeof(int8_t)); + int8_t *noise; int i, j; + void *base; + noise = xine_xmalloc_aligned(16, MAX_NOISE*sizeof(int8_t), &base); srand(123457); for(i=0,j=0; i<MAX_NOISE; i++,j++) @@ -129,6 +132,7 @@ static int8_t *initNoise(noise_param_t *fp){ } fp->noise= noise; + fp->base = base; fp->shiftptr= 0; return noise; } |