v4l2test: Fix the 'not support error' on null-display with mmap io_method.
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
This commit is contained in:
@@ -568,7 +568,8 @@ static void mainloop()
|
||||
uint32_t nfds = 0;
|
||||
|
||||
LOG(STF_LEVEL_TRACE, "Enter\n");
|
||||
if (STF_DISP_FB == gp_cfg_param->disp_type) {
|
||||
if (STF_DISP_FB == gp_cfg_param->disp_type ||
|
||||
STF_DISP_NONE == gp_cfg_param->disp_type) {
|
||||
// fb
|
||||
nfds = 1;
|
||||
fds = (struct pollfd*)malloc(sizeof(struct pollfd) * nfds);
|
||||
@@ -635,7 +636,8 @@ static void mainloop()
|
||||
break;
|
||||
}
|
||||
|
||||
if (STF_DISP_FB == gp_cfg_param->disp_type) {
|
||||
if (STF_DISP_FB == gp_cfg_param->disp_type ||
|
||||
STF_DISP_NONE == gp_cfg_param->disp_type) {
|
||||
// fb
|
||||
if (fds[0].revents & POLLIN) {
|
||||
frameRead();
|
||||
|
||||
Reference in New Issue
Block a user