[pulseaudio-discuss] [PATCH 1/2] rtsp_client: set state to disconnected when the socket was closed.

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Fri Feb 7 07:36:10 PST 2014


On Wed, 2014-02-05 at 00:59 +0100, Alexander Couzens wrote:
> 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);

Is there some reason to change the headers parameter from NULL to
c->headers?

-- 
Tanu



More information about the pulseaudio-discuss mailing list