This commit is contained in:
Maxim Devaev
2022-07-20 13:04:18 +03:00
parent 1c1e3b0875
commit 54af47fc43
2 changed files with 2 additions and 4 deletions

View File

@@ -166,11 +166,9 @@ static void *_video_sink_thread(UNUSED void *arg) {
if (mem != NULL) {
US_JLOG_INFO("video", "Memsink closed");
us_memsink_shared_unmap(mem);
mem = NULL;
}
if (fd > 0) {
if (fd >= 0) {
close(fd);
fd = -1;
}
sleep(1); // error_delay
}