From ed3087ea34dcf3e5a3793860ef81e3400548e379 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Mon, 10 Nov 2003 21:58:31 +0000 Subject: avoid segfault when resizing CVS patchset: 5718 CVS date: 2003/11/10 21:58:31 --- src/post/goom/xine_goom.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/post/goom/xine_goom.c b/src/post/goom/xine_goom.c index 8ec4c4060..f2ba0ddd9 100644 --- a/src/post/goom/xine_goom.c +++ b/src/post/goom/xine_goom.c @@ -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: xine_goom.c,v 1.38 2003/10/30 22:40:53 mroi Exp $ + * $Id: xine_goom.c,v 1.39 2003/11/10 21:58:31 f1rmb Exp $ * * GOOM post plugin. * @@ -639,7 +639,9 @@ static void goom_port_put_buffer (xine_audio_port_t *port_gen, this->width_back = width; this->height_back = height; this->ratio = (double)width/(double)height; - } + free_yuv_planes(&this->yuv); + init_yuv_planes(&this->yuv, this->width, this->height); + } } } while( this->sample_counter >= this->samples_per_frame ); } -- cgit v1.2.3