diff options
author | Stefan Holst <holstsn@users.sourceforge.net> | 2003-03-19 15:29:27 +0000 |
---|---|---|
committer | Stefan Holst <holstsn@users.sourceforge.net> | 2003-03-19 15:29:27 +0000 |
commit | cb24aef739ff57d2b69dfd5e82d0e5f1c352b3bc (patch) | |
tree | 41608bf9f357f4c60fd9221dea838ab118470b7c | |
parent | 8b46aaa2a0460af4666c05089425d31dc516572c (diff) | |
download | xine-lib-cb24aef739ff57d2b69dfd5e82d0e5f1c352b3bc.tar.gz xine-lib-cb24aef739ff57d2b69dfd5e82d0e5f1c352b3bc.tar.bz2 |
clear all memory on frame size change to avoid artefacts from previous
streams.
CVS patchset: 4449
CVS date: 2003/03/19 15:29:27
-rw-r--r-- | src/video_out/video_out_fb.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) { |