summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2002-02-26 00:55:34 +0000
committerDaniel Caujolle-Bert <f1rmb@users.sourceforge.net>2002-02-26 00:55:34 +0000
commitb6af16bb40a01d4e12d04805b089f98a303ac528 (patch)
treec9f6f0ae49df6f408d71e1ba9287f50378e0c492 /src
parent28e4d369b74f7f4c88f6e95ca568a22cb0b0fe44 (diff)
downloadxine-lib-b6af16bb40a01d4e12d04805b089f98a303ac528.tar.gz
xine-lib-b6af16bb40a01d4e12d04805b089f98a303ac528.tar.bz2
Fix segfault with Xv and remote display.
CVS patchset: 1520 CVS date: 2002/02/26 00:55:34
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_xv.c7
1 files 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);