From owner-cvs-all Sun Mar 22 22:58:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA10677 for cvs-all-outgoing; Sun, 22 Mar 1998 22:58:56 -0800 (PST) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from gratis.grondar.za (gratis.grondar.za [196.7.18.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA10654; Sun, 22 Mar 1998 22:58:49 -0800 (PST) (envelope-from mark@grondar.za) Received: from greenpeace.grondar.za (27QbAq0MEh+CZ7v6XY3oA06FlvQ7vWH3@greenpeace.grondar.za [196.7.18.132]) by gratis.grondar.za (8.8.8/8.8.8) with ESMTP id IAA17492; Mon, 23 Mar 1998 08:58:48 +0200 (SAST) (envelope-from mark@grondar.za) Received: from grondar.za (DtGdWtfb6YP364KB//HLsoL1gJaVOx+0@localhost [127.0.0.1]) by greenpeace.grondar.za (8.8.8/8.8.8) with ESMTP id IAA04057; Mon, 23 Mar 1998 08:58:40 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <199803230658.IAA04057@greenpeace.grondar.za> X-Mailer: exmh version 2.0.2 2/24/98 To: asami@FreeBSD.ORG cc: multimedia@FreeBSD.ORG, committers@FreeBSD.ORG Subject: Port graphics/fxtv is broken Mime-Version: 1.0 Content-Type: multipart/mixed ; boundary="==_Exmh_5349475880" Date: Mon, 23 Mar 1998 08:58:39 +0200 From: Mark Murray Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk This is a multipart MIME message. --==_Exmh_5349475880 Content-Type: text/plain; charset=us-ascii Hi Please may I add the following patch to graphics/fxtv. Without it, fxtv is useless. Thanks! M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org --==_Exmh_5349475880 Content-Type: text/plain ; name="patch-ab"; charset=us-ascii Content-Description: patch-ab Content-Disposition: attachment; filename="patch-ab" --- ../fxtv-0.46.ORIG/tvcapture.c Tue Oct 28 01:59:41 1997 +++ tvcapture.c Sun Mar 22 16:43:45 1998 @@ -1126,7 +1126,7 @@ /* Just mmap the biggest buffer we'll need and be done with it. */ /* (Buffer used for non-directvideo captures) */ c->drv_buf = (TV_UINT8 *) mmap( (caddr_t)0, MAX_MMAP_BUF_SIZE, - PROT_READ|PROT_WRITE, 0, c->fd, (off_t)0 ); + PROT_READ, MAP_SHARED, c->fd, (off_t)0 ); if ( c->drv_buf == (TV_UINT8 *) -1 ) { fprintf( stderr, "mmap of driver buffer failed: %s\n", strerror(errno) ); @@ -1537,9 +1537,9 @@ video.ramsize = 0; /* If TDEC is on, may be a while before old trash gets written on */ - if ( c->fps != c->fps_max ) +/* if ( c->fps != c->fps_max ) memset( c->drv_buf, '\0', - g.w * g.h * c->pix_geom_list[ c->pix_geom_idx ].Bpp ); + g.w * g.h * c->pix_geom_list[ c->pix_geom_idx ].Bpp ); */ } memcpy( &pix_geom, &c->pix_geom_list[ c->pix_geom_idx ], sizeof( pix_geom ) ); --==_Exmh_5349475880-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message