From: Matt Staples Date: Mon, 5 Dec 2016 14:57:19 +0000 (-0700) Subject: rtspsrc: Fix session cleanup when handling redirect on PLAY X-Git-Tag: 1.12.2~281 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc2adef5506602760cdd73ca6562f793e1d991bb;p=platform%2Fupstream%2Fgst-plugins-good.git rtspsrc: Fix session cleanup when handling redirect on PLAY Redirect on PLAY wasn't doing the necessary session cleanup. Fixed by removing code from gst_rtspsrc_send that changed the state varable upon encountering a redirect. Better to let the redirect handlers in gst_rtspsrc_retrieve_sdp and gst_rtspsrc_play do their own state-dependent cleanup. https://bugzilla.gnome.org/show_bug.cgi?id=775543 --- diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c index 5d93c10..f0cd0dc 100644 --- a/gst/rtsp/gstrtspsrc.c +++ b/gst/rtsp/gstrtspsrc.c @@ -5571,7 +5571,6 @@ error_response: src->conninfo.url->transports = transports; src->need_redirect = TRUE; - src->state = GST_RTSP_STATE_INIT; res = GST_RTSP_OK; break; }