package electricsheep tags 390902 + patch thanks Hi!
Attached is a patch which tells mpeg2dec_onroot to skip ARGB visuals when trying to find the best visual. This will fix this issue. The fix should be also sent to the mpeg2dec package. Regards, -- Jérémy
diff -urN electricsheep-2.6.8.old/mpeg2dec/libvo/video_out_x11.c electricsheep-2.6.8/mpeg2dec/libvo/video_out_x11.c --- electricsheep-2.6.8.old/mpeg2dec/libvo/video_out_x11.c 2006-10-07 14:19:53.000000000 +0200 +++ electricsheep-2.6.8/mpeg2dec/libvo/video_out_x11.c 2006-10-07 14:23:25.000000000 +0200 @@ -508,9 +508,13 @@ /* find the visual with the highest depth */ XvisualInfo = XvisualInfoTable; - for (i = 1; i < number; i++) + for (i = 1; i < number; i++) { + /* Skip ARGB visuals. */ + if (XvisualInfoTable[i].depth > 24) + continue; if (XvisualInfoTable[i].depth > XvisualInfo->depth) XvisualInfo = XvisualInfoTable + i; + } instance->vinfo = *XvisualInfo; XFree (XvisualInfoTable);
signature.asc
Description: Digital signature