From b6af16bb40a01d4e12d04805b089f98a303ac528 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Tue, 26 Feb 2002 00:55:34 +0000 Subject: Fix segfault with Xv and remote display. CVS patchset: 1520 CVS date: 2002/02/26 00:55:34 --- src/video_out/video_out_xv.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/video_out/video_out_xv.c b/src/video_out/video_out_xv.c index 3a4c7a293..84bcb8502 100644 --- a/src/video_out/video_out_xv.c +++ b/src/video_out/video_out_xv.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_xv.c,v 1.95 2002/02/25 01:23:41 guenter Exp $ + * $Id: video_out_xv.c,v 1.96 2002/02/26 00:55:34 f1rmb Exp $ * * video_out_xv.c, X11 video extension interface for xine * @@ -384,8 +384,9 @@ static XvImage *create_ximage (xv_driver_t *this, XShmSegmentInfo *shminfo, char *data; - data = malloc (width * height * 3/2); - + /* This cause segfault with remote display */ + /* data = malloc (width * height * 3/2); */ + data = malloc (width * height * 2); image = XvCreateImage (this->display, this->xv_port, xv_format, data, width, height); -- cgit v1.2.3