mirror of
https://github.com/steve-m/hsdaoh.git
synced 2025-12-09 23:34:41 +01:00
lib: add message when losing sync
This commit is contained in:
parent
5ae9aa7993
commit
1fbd15eedc
1 changed files with 3 additions and 0 deletions
|
|
@ -581,6 +581,9 @@ void hsdaoh_process_frame(hsdaoh_dev_t *dev, uint8_t *data, int size)
|
|||
hsdaoh_extract_metadata(data, &meta, dev->width);
|
||||
|
||||
if (le32toh(meta.magic) != 0xda7acab1) {
|
||||
if (dev->stream_synced)
|
||||
fprintf(stderr, "Lost sync to HDMI input stream\n");
|
||||
|
||||
dev->stream_synced = false;
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue