mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-01 05:31:04 +08:00
ETIME -> ETIMEDOUT. Patch by Sam Gerstein <sgerstein bluefinlab com>.
Originally committed as revision 22785 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:

committed by
Ronald S. Bultje

parent
523429220b
commit
f3c68c5b45
@ -1692,7 +1692,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
} else if (n == 0 && ++timeout_cnt >= MAX_TIMEOUTS) {
|
} else if (n == 0 && ++timeout_cnt >= MAX_TIMEOUTS) {
|
||||||
return AVERROR(ETIME);
|
return AVERROR(ETIMEDOUT);
|
||||||
} else if (n < 0 && errno != EINTR)
|
} else if (n < 0 && errno != EINTR)
|
||||||
return AVERROR(errno);
|
return AVERROR(errno);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user