Signed-off-by: Alexander Couzens <lynxis at fe80.eu> --- src/modules/rtp/rtsp_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/rtp/rtsp_client.c b/src/modules/rtp/rtsp_client.c index 6edb0e4..5343b3c 100644 --- a/src/modules/rtp/rtsp_client.c +++ b/src/modules/rtp/rtsp_client.c @@ -181,7 +181,8 @@ static void line_callback(pa_ioline *line, const char *s, void *userdata) { if (!s) { /* Keep the ioline/iochannel open as they will be freed automatically */ c->ioline = NULL; - c->callback(c, STATE_DISCONNECTED, NULL, c->userdata); + c->state = STATE_DISCONNECTED; + c->callback(c, c->state, c->headers, c->userdata); return; } -- 1.8.5.3