Skip to content

Commit

Permalink
Add AVERROR_EXIT.
Browse files Browse the repository at this point in the history
This is different from AVERROR(EINTR) because calls that fail with EINTR
should usually be restarted.

Signed-off-by: Nicolas George <[email protected]>
Signed-off-by: Ronald S. Bultje <[email protected]>
  • Loading branch information
Nicolas George authored and rbultje committed Mar 15, 2011
1 parent 3e68b3b commit bafa4dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libavutil/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
case AVERROR_FILTER_NOT_FOUND: errstr = "Filter not found"; break;
case AVERROR_BSF_NOT_FOUND: errstr = "Bitstream filter not found"; break;
case AVERROR_STREAM_NOT_FOUND: errstr = "Stream not found"; break;
case AVERROR_EXIT: errstr = "Immediate exit requested"; break;
}

if (errstr) {
Expand Down
2 changes: 2 additions & 0 deletions libavutil/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
#define AVERROR_BSF_NOT_FOUND (-MKTAG(0xF8,'B','S','F')) ///< Bitstream filter not found
#define AVERROR_STREAM_NOT_FOUND (-MKTAG(0xF8,'S','T','R')) ///< Stream not found

#define AVERROR_EXIT (-MKTAG('E','X','I','T')) ///< Immediate exit was requested; the called function should not be restarted

/**
* Put a description of the AVERROR code errnum in errbuf.
* In case of failure the global variable errno is set to indicate the
Expand Down

0 comments on commit bafa4dd

Please sign in to comment.