From 45e214d7ae7f1a8cf7af6b43968083b53b25ccb2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 6 Feb 2015 19:19:15 +0100 Subject: stream: slightly improve reconnect behavior Wait for a longer time between reconnects. Introdeuce and use mp_cancel_wait(), so that quitting is still immediate. --- stream/stream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/stream.h') 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); -- cgit v1.2.3