MCPcopy Create free account
hub / github.com/FFMS/ffms2 / IsIOError

Function IsIOError

src/core/utils.cpp:151–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151bool IsIOError(int error) {
152 switch (error) {
153 case AVERROR(EIO):
154 case AVERROR(ETIMEDOUT):
155 case AVERROR(EPROTO):
156 case AVERROR(EADDRINUSE):
157 case AVERROR(EADDRNOTAVAIL):
158 case AVERROR(ENETDOWN):
159 case AVERROR(ENETUNREACH):
160 case AVERROR(ENETRESET):
161 case AVERROR(ECONNABORTED):
162 case AVERROR(ECONNRESET):
163 case AVERROR(ECONNREFUSED):
164 case AVERROR(EHOSTUNREACH):
165#ifndef _WIN32
166 case AVERROR(ESHUTDOWN):
167 case AVERROR(EHOSTDOWN):
168#endif
169 return true;
170 default:
171 return false;
172 }
173}
174
175std::string AVErrorToString(int ret) {
176 char error[1024];

Callers 2

DecodeNextFrameMethod · 0.85
DoIndexingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected