diff options
author | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-10 21:58:31 +0000 |
---|---|---|
committer | Daniel Caujolle-Bert <f1rmb@users.sourceforge.net> | 2003-11-10 21:58:31 +0000 |
commit | ed3087ea34dcf3e5a3793860ef81e3400548e379 (patch) | |
tree | bf7bf154f64b8e1e8cf72dbfd53bb75d1b461fde /src | |
parent | 158b24c049a24c0b56b570ba16e1b8710619dadd (diff) | |
download | xine-lib-ed3087ea34dcf3e5a3793860ef81e3400548e379.tar.gz xine-lib-ed3087ea34dcf3e5a3793860ef81e3400548e379.tar.bz2 |
avoid segfault when resizing
CVS patchset: 5718
CVS date: 2003/11/10 21:58:31
Diffstat (limited to 'src')
-rw-r--r-- | src/post/goom/xine_goom.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 ); } |