diff options
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/librtsp/rtsp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpdemux/librtsp/rtsp.c b/libmpdemux/librtsp/rtsp.c index 27d9dd37a5..131f2045f0 100644 --- a/libmpdemux/librtsp/rtsp.c +++ b/libmpdemux/librtsp/rtsp.c @@ -594,8 +594,10 @@ int rtsp_request_teardown(rtsp_t *s, const char *what) { } rtsp_send_request (s, RTSP_METHOD_TEARDOWN, buf); free (buf); - - return rtsp_get_answers(s); + + /* after teardown we're done with RTSP streaming, no need to get answer as + reading more will only result to garbage and buffer overflow */ + return RTSP_STATUS_OK; } /* |