[FFmpeg-devel] [PATCH 1/2] Add AVERROR_INTERRUPTED.

Michael Niedermayer michaelni
Sat Mar 12 23:30:29 CET 2011


On Sat, Mar 12, 2011 at 02:35:55PM +0100, Nicolas George wrote:
> This is different from AVERROR(EINTR) because calls that fail with EINTR
> should usually be restarted.
> 
> Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
> ---
>  libavutil/error.c |    1 +
>  libavutil/error.h |    2 ++
>  2 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/libavutil/error.c b/libavutil/error.c
> index 5cf54aa..7e75b02 100644
> --- a/libavutil/error.c
> +++ b/libavutil/error.c
> @@ -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_INTERRUPTED:       errstr = "Interrupted"; break;
>      }
>  
>      if (errstr) {

i agree with your patches but i think a name more different from EINTR
should be used.
maybe AVERROR_QUIT/EXIT/STOP_REQUEST

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

If you really think that XML is the answer, then you definitly missunderstood
the question -- Attila Kinali
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110312/77582029/attachment.pgp>



More information about the ffmpeg-devel mailing list