mirror of https://github.com/mpv-player/mpv
Merge if condition check to lessen differences to vo_fbdev.c.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27994 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3e0abbff54
commit
2a044df222
|
@ -234,9 +234,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width,
|
||||||
mp_msg(MSGT_VO, MSGL_ERR, "Can't open %s: %s\n", TTY_DEV_NAME, strerror(errno));
|
mp_msg(MSGT_VO, MSGL_ERR, "Can't open %s: %s\n", TTY_DEV_NAME, strerror(errno));
|
||||||
vt_doit = 0;
|
vt_doit = 0;
|
||||||
}
|
}
|
||||||
|
if (vt_doit && !(vt_fp = fdopen(vt_fd, "w"))) {
|
||||||
vt_fp = fdopen(vt_fd, "w");
|
|
||||||
if (vt_doit && !vt_fp) {
|
|
||||||
mp_msg(MSGT_VO, MSGL_ERR, "Can't fdopen %s: %s\n", TTY_DEV_NAME, strerror(errno));
|
mp_msg(MSGT_VO, MSGL_ERR, "Can't fdopen %s: %s\n", TTY_DEV_NAME, strerror(errno));
|
||||||
vt_doit = 0;
|
vt_doit = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue