Author: tack
Date: Thu Dec 21 00:43:13 2006
New Revision: 2262

Modified:
   trunk/xine/src/drivers/video_out_kaa.c

Log:
Check OSD buffers allocated before proceeding.


Modified: trunk/xine/src/drivers/video_out_kaa.c
==============================================================================
--- trunk/xine/src/drivers/video_out_kaa.c      (original)
+++ trunk/xine/src/drivers/video_out_kaa.c      Thu Dec 21 00:43:13 2006
@@ -228,6 +228,9 @@
     int x, y, n_plane, h, row_stride, slice_y1 = -2, slice_y2 = -2;
     uint8_t *p;
 
+    if (!this->osd_planes[0]) // Not allocated yet.
+        return;
+
     n_plane = this->osd_format == XINE_IMGFMT_YV12 ? 1 : 0;
     p = this->osd_alpha_planes[n_plane];
     row_stride = this->osd_strides[n_plane];

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to