mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 00:51:37 +00:00
lavd/xv: report if no adaptor present.
This commit is contained in:
parent
828ac6d1b5
commit
fde219cfa8
@ -149,6 +149,10 @@ static int xv_write_header(AVFormatContext *s)
|
|||||||
ret = AVERROR_EXTERNAL;
|
ret = AVERROR_EXTERNAL;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
if (!num_adaptors) {
|
||||||
|
av_log(s, AV_LOG_ERROR, "No X-Video adaptors present\n");
|
||||||
|
return AVERROR(ENODEV);
|
||||||
|
}
|
||||||
xv->xv_port = ai[0].base_id;
|
xv->xv_port = ai[0].base_id;
|
||||||
XvFreeAdaptorInfo(ai);
|
XvFreeAdaptorInfo(ai);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user