vo_drm: fix return value for void function

This commit is contained in:
Marcin Kurczewski 2015-04-21 12:00:47 +02:00 committed by wm4
parent dedb15a429
commit 445527d45c
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ static int setup_vo_crtc(struct vo *vo)
{
struct priv *p = vo->priv;
if (p->active)
return;
return 0;
p->old_crtc = drmModeGetCrtc(p->fd, p->dev->crtc);
int ret = drmModeSetCrtc(p->fd, p->dev->crtc,
p->dev->bufs[p->dev->front_buf + BUF_COUNT - 1].fb,