diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2015-10-23 10:27:31 +0200 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2015-10-23 10:31:25 +0200 |
commit | 436a1d4012553a2f33d0e3a5180b3b5ae0378bdd (patch) | |
tree | 984f5007600dcf9029eaf8750740e10226196af1 /src/player.h | |
parent | af0f9d4bbff4f7a166c15df8c60ad61791740207 (diff) | |
download | pianobar-436a1d4012553a2f33d0e3a5180b3b5ae0378bdd.tar.gz pianobar-436a1d4012553a2f33d0e3a5180b3b5ae0378bdd.tar.bz2 pianobar-436a1d4012553a2f33d0e3a5180b3b5ae0378bdd.zip |
Interruptible requests
^C now works as expected: It interrupts API requests, input prompts and
audio streaming. Timeouts have been removed.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/player.h b/src/player.h index e4d9f5b..4f0c963 100644 --- a/src/player.h +++ b/src/player.h @@ -30,6 +30,7 @@ THE SOFTWARE. #include <sys/types.h> #include <pthread.h> #include <stdint.h> +#include <signal.h> #include <ao/ao.h> #include <libavformat/avformat.h> @@ -65,9 +66,7 @@ typedef struct { AVFilterContext *fbufsink, *fabuf; int streamIdx; int64_t lastTimestamp; -#ifndef HAVE_AV_TIMEOUT - int64_t ping; -#endif + sig_atomic_t interrupted; ao_device *aoDev; |