mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
rtspsrc: don't send teardown before setup
Don't send a TEARDOWN request when we did not manage to successfully setup a stream.
This commit is contained in:
parent
afbe123e33
commit
5d3168e558
1 changed files with 4 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue