Commit 5d3168e5 authored by Wim Taymans's avatar Wim Taymans Committed by Wim Taymans
Browse files

rtspsrc: don't send teardown before setup

Don't send a TEARDOWN request when we did not manage to successfully setup a
parent afbe123e
......@@ -4709,6 +4709,10 @@ gst_rtspsrc_close (GstRTSPSrc * src)
GST_DEBUG_OBJECT (src, "not connected, doing cleanup");
goto close;
if (src->state < GST_RTSP_STATE_READY) {
GST_DEBUG_OBJECT (src, "not ready, doing cleanup");
goto close;
if (src->methods & (GST_RTSP_PLAY | GST_RTSP_TEARDOWN)) {
/* do TEARDOWN */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment