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

Michael Niedermayer michaelni
Sun Mar 28 00:40:04 CET 2010


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

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

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- 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/20100328/b93cd07b/attachment.pgp>



More information about the ffmpeg-devel mailing list