Mercurial > libavformat.hg
changeset 5877:ba648dfcbe04 libavformat
Handle errors returned from ff_rtsp_read_reply in udp_read_packet properly
author | mstorsjo |
---|---|
date | Wed, 24 Mar 2010 18:52:27 +0000 |
parents | 2c0f0162a110 |
children | 01b33a7f96ee |
files | rtsp.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rtsp.c Wed Mar 24 18:40:43 2010 +0000 +++ b/rtsp.c Wed Mar 24 18:52:27 2010 +0000 @@ -1670,7 +1670,9 @@ if (tcp_fd != -1 && FD_ISSET(tcp_fd, &rfds)) { RTSPMessageHeader reply; - ff_rtsp_read_reply(s, &reply, NULL, 0); + ret = ff_rtsp_read_reply(s, &reply, NULL, 0); + if (ret < 0) + return ret; /* XXX: parse message */ if (rt->state != RTSP_STATE_STREAMING) return 0;