Skip to content

Commit

Permalink
Fixed pikvm#212: Supported Raspberry Camera 3 via libcamerify
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Jun 8, 2023
1 parent aeb5930 commit 71b93a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ustreamer/stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,13 @@ void us_stream_loop(us_stream_s *stream) {
}
}

if (has_write) {
// Это условие было добавлено из параноидальных соображений, и мы ни разу не сталкивались
// с подобными ошибками, кроме случая с libcamerify, который генерит эвенты на запись.
// Судя по всему, игнорирование has_write не делает никому плохо.
/*if (has_write) {
US_LOG_ERROR("Got unexpected writing event, seems device was disconnected");
break;
}
}*/

if (has_error) {
US_LOG_INFO("Got V4L2 event");
Expand Down

0 comments on commit 71b93a2

Please sign in to comment.