mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-07-15 01:23:37 -07:00
Video is working!
This commit is contained in:
parent
8876b591bc
commit
6846d61fa2
6 changed files with 93 additions and 8 deletions
|
@ -29,6 +29,7 @@ void video_sample_cb(uint8_t *buf, size_t buf_size, void *user)
|
|||
if(!video_out_file)
|
||||
return;
|
||||
printf("writing %#zx to file, start: %#zx\n", buf_size, file_size);
|
||||
chiaki_log_hexdump(nullptr, CHIAKI_LOG_DEBUG, buf, buf_size);
|
||||
file_size += buf_size;
|
||||
video_out_file->write((const char *)buf, buf_size);
|
||||
//StreamRelayIODevice *io_device = reinterpret_cast<StreamRelayIODevice *>(user);
|
||||
|
@ -121,4 +122,4 @@ int main(int argc, char *argv[])
|
|||
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue