Ticket #6514: mythtv-simple-xv-video-fix.patch
File mythtv-simple-xv-video-fix.patch, 1.5 KB (added by , 15 years ago) |
---|
-
videoout_xv.cpp
old new 2199 2199 2200 2200 X11L; 2201 2201 2202 int bytes_per_line = XJ_depth / 8 * display_visible_rect.width();2202 int bytes_per_line; 2203 2203 int scrn = DefaultScreen(XJ_disp); 2204 2204 Visual *visual = DefaultVisual(XJ_disp, scrn); 2205 2205 XJ_non_xv_image = XCreateImage(XJ_disp, visual, XJ_depth, 2206 2206 ZPixmap, /*offset*/0, /*data*/0, 2207 2207 display_visible_rect.width(), 2208 2208 display_visible_rect.height(), 2209 /*bitmap_pad*/0, 2210 bytes_per_line); 2209 /*bitmap_pad*/8,0); 2211 2210 2212 2211 X11U; 2213 2212 … … 2218 2217 <<" " 2219 2218 <<"XJ_depth("<<XJ_depth<<") " 2220 2219 <<"WxH("<<display_visible_rect.width() 2221 <<"x"<<display_visible_rect.height()<<") " 2222 <<"bpl("<<bytes_per_line<<")"); 2220 <<"x"<<display_visible_rect.height()<<")"); 2223 2221 return false; 2224 2222 } 2223 bytes_per_line = XJ_non_xv_image->bytes_per_line; 2225 2224 XJ_non_xv_image->data = (char*) malloc( 2226 2225 bytes_per_line * display_visible_rect.height()); 2227 2226 }