[FFmpeg-devel] [RFC] The meaning of AVERROR_NOTSUPP

Michael Niedermayer michaelni
Thu Apr 22 09:37:14 CEST 2010


On Sun, Apr 18, 2010 at 09:27:25PM +0200, Stefano Sabatini wrote:
> On date Wednesday 2010-04-14 01:58:41 +0200, Stefano Sabatini encoded:
> > On date Saturday 2010-04-03 13:31:29 +0200, Stefano Sabatini encoded:
> > > On date Saturday 2010-04-03 12:36:01 +0200, Michael Niedermayer encoded:
> > [...]
> > > > Feature not implemented
> > > > and
> > > > Implementing this feature is welcome
> > > > 
> > > > are 2 seperate things
> > > > 
> > > > similarly
> > > > 
> > > > "not implementable"
> > > > "requested operation nonsensical"
> > > > "we dont want this implemented"
> > > > "disabled at compile time, rerun configure"
> > > > 
> > > > are all semantically different
> > > > 
> > > > also you cannot redefine the POSIX error codes to mean something else than
> > > > they mean.
> > > 
> > > So taking into account the considerations of Howard and yours, it
> > > seems that we can agree on simply dropping AVERROR_NOTSUPP and use
> > > AVERROR(ENOSYS) instead.
> > > 
> > > We'll use AVERROR_PATCHWELCOME when a feature is not implemented and
> > > we want and can implement it, and we'll use AVERROR(ENOSYS) in all the
> > > other cases (feature non-implementable, requested operation
> > > nonsensical, feature implementable but we don't want to implement it,
> > > feature disabled at compile time etc...).
> > [...]
> > 
> > Ping.
> 
> Patch updated.
> -- 
> FFmpeg = Funny and Fantastic Mean Peaceful Elitist God

>  error.c |    1 -
>  error.h |    2 +-
>  2 files changed, 1 insertion(+), 2 deletions(-)
> a8e541223573b93b115ed0187b4a1e89423cc709  0003-Drop-AVERROR_NOTSUPP-at-the-next-major-bump-use-AVER.patch
> >From 2d584bc35ed9cb9e737181b0adf3edc6db6634f1 Mon Sep 17 00:00:00 2001
> From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> Date: Fri, 2 Apr 2010 15:11:03 +0200
> Subject: [PATCH 3/4] Drop AVERROR_NOTSUPP at the next major bump, use AVERROR(ENOSYS)
>  instead which is semantically equivalent.
> 
> ---
>  libavutil/error.c |    1 -
>  libavutil/error.h |    2 +-
>  2 files changed, 1 insertions(+), 2 deletions(-)

if people prefer it that way iam ok with it


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

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100422/6841894a/attachment.pgp>



More information about the ffmpeg-devel mailing list