diff options
author | wm4 <wm4@nowhere> | 2015-02-06 19:19:15 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-06 19:19:15 +0100 |
commit | 45e214d7ae7f1a8cf7af6b43968083b53b25ccb2 (patch) | |
tree | 3d27d0061df39b44a464533033639e5050937551 /stream/stream.h | |
parent | e14d09c8a6aaf3a2a56898c46ec6ac817c0dd66f (diff) | |
download | mpv-45e214d7ae7f1a8cf7af6b43968083b53b25ccb2.tar.bz2 mpv-45e214d7ae7f1a8cf7af6b43968083b53b25ccb2.tar.xz |
stream: slightly improve reconnect behavior
Wait for a longer time between reconnects. Introdeuce and use
mp_cancel_wait(), so that quitting is still immediate.
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index ef900bf16f..ef9f402c72 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -277,6 +277,7 @@ char *mp_url_escape(void *talloc_ctx, const char *s, const char *ok); struct mp_cancel *mp_cancel_new(void *talloc_ctx); void mp_cancel_trigger(struct mp_cancel *c); bool mp_cancel_test(struct mp_cancel *c); +bool mp_cancel_wait(struct mp_cancel *c, double timeout); void mp_cancel_reset(struct mp_cancel *c); void *mp_cancel_get_event(struct mp_cancel *c); // win32 HANDLE int mp_cancel_get_fd(struct mp_cancel *c); |