mirror of
https://github.com/mpv-player/mpv
synced 2024-12-29 10:32:15 +00:00
Merge another if condition check to lessen differences to vo_fbdev.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27998 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
df58b1815f
commit
9aa2edf9d1
@ -210,10 +210,8 @@ 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 = NULL;
|
||||||
|
if ((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)) == (uint8_t *) -1) {
|
||||||
MAP_SHARED, fb_dev_fd, 0);
|
|
||||||
if (frame_buffer == (uint8_t *) -1) {
|
|
||||||
mp_msg(MSGT_VO, MSGL_ERR, "Can't mmap %s: %s\n", WII_DEV_NAME, strerror(errno));
|
mp_msg(MSGT_VO, MSGL_ERR, "Can't mmap %s: %s\n", WII_DEV_NAME, strerror(errno));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user