mirror of
https://github.com/mpv-player/mpv
synced 2025-02-09 08:27:18 +00:00
Remove useless setting of frame_buffer to NULL as suggested by Reimar.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28017 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4daa28d0a5
commit
582bb322d7
@ -884,7 +884,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
|||||||
|
|
||||||
fb_line_len = fb_finfo.line_length;
|
fb_line_len = fb_finfo.line_length;
|
||||||
fb_size = fb_finfo.smem_len;
|
fb_size = fb_finfo.smem_len;
|
||||||
frame_buffer = NULL;
|
|
||||||
#ifdef CONFIG_VIDIX
|
#ifdef CONFIG_VIDIX
|
||||||
if (vidix_name) {
|
if (vidix_name) {
|
||||||
unsigned image_width, image_height, x_offset, y_offset;
|
unsigned image_width, image_height, x_offset, y_offset;
|
||||||
|
@ -213,7 +213,6 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
|||||||
|
|
||||||
fb_line_len = fb_finfo.line_length;
|
fb_line_len = fb_finfo.line_length;
|
||||||
fb_size = fb_finfo.smem_len;
|
fb_size = fb_finfo.smem_len;
|
||||||
frame_buffer = NULL;
|
|
||||||
|
|
||||||
frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE,
|
frame_buffer = (uint8_t *) mmap(0, fb_size, PROT_READ | PROT_WRITE,
|
||||||
MAP_SHARED, fb_dev_fd, 0);
|
MAP_SHARED, fb_dev_fd, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user