diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 466b498c6e69099613240606a65a5df6dba7a8b9..bbd047f0c9799395636f8bb17385f05e64809973 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1726,7 +1726,7 @@ static int rtsp_read_close(AVFormatContext *s) snprintf(cmd, sizeof(cmd), "TEARDOWN %s RTSP/1.0\r\n", s->filename); - rtsp_send_cmd(s, cmd, reply, NULL); + rtsp_send_cmd_async(s, cmd, reply, NULL); rtsp_close_streams(rt); url_close(rt->rtsp_hd);