Mercurial > libavformat.hg
comparison rtsp.c @ 2775:1301147d9450 libavformat
Make av_read_frame with rtsp client return EINTR on interrupt
patch from elupusateccedotse (missing hunk from r11072)
author | lu_zero |
---|---|
date | Thu, 22 Nov 2007 14:13:23 +0000 |
parents | b43dc2901f83 |
children | d3b3cfb538d8 |
comparison
equal
deleted
inserted
replaced
2774:477419a721a3 | 2775:1301147d9450 |
---|---|
1194 if (len >=0 && rtsp_st->rtp_ctx) | 1194 if (len >=0 && rtsp_st->rtp_ctx) |
1195 rtp_check_and_send_back_rr(rtsp_st->rtp_ctx, len); | 1195 rtp_check_and_send_back_rr(rtsp_st->rtp_ctx, len); |
1196 break; | 1196 break; |
1197 } | 1197 } |
1198 if (len < 0) | 1198 if (len < 0) |
1199 return AVERROR(EIO); | 1199 return len; |
1200 ret = rtp_parse_packet(rtsp_st->rtp_ctx, pkt, buf, len); | 1200 ret = rtp_parse_packet(rtsp_st->rtp_ctx, pkt, buf, len); |
1201 if (ret < 0) | 1201 if (ret < 0) |
1202 goto redo; | 1202 goto redo; |
1203 if (ret == 1) { | 1203 if (ret == 1) { |
1204 /* more packets may follow, so we save the RTP context */ | 1204 /* more packets may follow, so we save the RTP context */ |