mirror of https://github.com/mpv-player/mpv
vo_drm: fix return value for void function
This commit is contained in:
parent
dedb15a429
commit
445527d45c
|
@ -351,7 +351,7 @@ static int setup_vo_crtc(struct vo *vo)
|
||||||
{
|
{
|
||||||
struct priv *p = vo->priv;
|
struct priv *p = vo->priv;
|
||||||
if (p->active)
|
if (p->active)
|
||||||
return;
|
return 0;
|
||||||
p->old_crtc = drmModeGetCrtc(p->fd, p->dev->crtc);
|
p->old_crtc = drmModeGetCrtc(p->fd, p->dev->crtc);
|
||||||
int ret = drmModeSetCrtc(p->fd, p->dev->crtc,
|
int ret = drmModeSetCrtc(p->fd, p->dev->crtc,
|
||||||
p->dev->bufs[p->dev->front_buf + BUF_COUNT - 1].fb,
|
p->dev->bufs[p->dev->front_buf + BUF_COUNT - 1].fb,
|
||||||
|
|
Loading…
Reference in New Issue