[FFmpeg-devel] [PATCH] Document avio.h:url_exist()

Stefano Sabatini stefano.sabatini-lala
Sun Mar 28 12:45:49 CEST 2010


On date Sunday 2010-03-28 00:40:04 +0100, Michael Niedermayer encoded:
> On Sat, Mar 27, 2010 at 10:19:13PM +0100, Stefano Sabatini wrote:
> > On date Saturday 2010-01-23 19:23:37 +0100, Stefano Sabatini encoded:
> > > On date Saturday 2010-01-23 18:45:24 +0100, Stefano Sabatini encoded:
> > > > Hi, as in subject.
> > > > -- 
> > > > FFmpeg = Faithful and Freak MultiPurpose Enhanced Ghost
> > > 
> > > > Index: ffmpeg/libavformat/avio.h
> > > > ===================================================================
> > > > --- ffmpeg.orig/libavformat/avio.h	2010-01-23 18:42:36.000000000 +0100
> > > > +++ ffmpeg/libavformat/avio.h	2010-01-23 18:43:46.000000000 +0100
> > > > @@ -104,6 +104,10 @@
> > > >  int url_write(URLContext *h, unsigned char *buf, int size);
> > > >  int64_t url_seek(URLContext *h, int64_t pos, int whence);
> > > >  int url_close(URLContext *h);
> > > > +
> > > > +/**
> > > > + * Returns 1 if the resource indicated by url exists, 0 otherwise.
> > > > + */
> > > >  int url_exist(const char *url);
> > > >  int64_t url_filesize(URLContext *h);
> > 
> > Ping.
> 
> the API should not constraint the implemenattion so tightly
> dayly major ver bumps suck fuctioon1234 sucks too
> 0 and >0 is better, that allows us to return more information
> in the future. Maybe we wont ever but APIs should not be unneccessarily
> constraint

Check it again, regards.
-- 
FFmpeg = Forgiving and Faithless Mournful Porno Evangelical Governor



More information about the ffmpeg-devel mailing list