I inserted the code you suggested under line 103 'if (key == '\n')' but nothing happens.
It appears that '\n' is never returned from 'int key = get_key_or_signal(options, p);' on line 102.
After some troubleshooting I found that 'int key = get_key_or_signal(options, p);' always returns, 0 even when SIGUSR1 is sent with 'pkill -USR1 rpicam-vid'
Any ideas as to why this is happening?
It appears that '\n' is never returned from 'int key = get_key_or_signal(options, p);' on line 102.
After some troubleshooting I found that 'int key = get_key_or_signal(options, p);' always returns, 0 even when SIGUSR1 is sent with 'pkill -USR1 rpicam-vid'
Code:
int key = get_key_or_signal(options, p); LOG(1, "Key is " << key); if (key == '\n') output->Signal();
Code:
Key is 0Key is 0Key is 0Key is 0Received signal 10Key is 0Key is 0
Statistics: Posted by jwainwright87 — Wed Jul 17, 2024 8:59 am