From cb24aef739ff57d2b69dfd5e82d0e5f1c352b3bc Mon Sep 17 00:00:00 2001 From: Stefan Holst Date: Wed, 19 Mar 2003 15:29:27 +0000 Subject: clear all memory on frame size change to avoid artefacts from previous streams. CVS patchset: 4449 CVS date: 2003/03/19 15:29:27 --- src/video_out/video_out_fb.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/video_out/video_out_fb.c b/src/video_out/video_out_fb.c index dbea7b8b6..b88d915a5 100644 --- a/src/video_out/video_out_fb.c +++ b/src/video_out/video_out_fb.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: video_out_fb.c,v 1.24 2003/03/19 01:11:13 holstsn Exp $ + * $Id: video_out_fb.c,v 1.25 2003/03/19 15:29:27 holstsn Exp $ * * video_out_fb.c, frame buffer xine driver by Miguel Freitas * @@ -570,8 +570,7 @@ static void fb_display_frame(vo_driver_t *this_gen, vo_frame_t *frame_gen) this->sc.gui_width, this->sc.gui_height, frame->sc.output_width, frame->sc.output_height); - memset(frame->video_mem, 0, - this->fb_bytes_per_line * this->sc.gui_height); + memset(this->video_mem_base, 0, this->mem_size); } if (this->sc.frame_output_cb) { -- cgit v1.2.3