[FFmpeg-cvslog] r10041 - trunk/libavformat/file.c
Michael Niedermayer
michaelni
Fri Aug 10 03:05:45 CEST 2007
Hi
On Fri, Aug 10, 2007 at 01:41:59AM +0200, ramiro wrote:
> Author: ramiro
> Date: Fri Aug 10 01:41:59 2007
> New Revision: 10041
>
> Log:
> Make the pipe URLProtocol share read and write functions with the file URLProtocol
>
> Modified:
> trunk/libavformat/file.c
>
> Modified: trunk/libavformat/file.c
> ==============================================================================
> --- trunk/libavformat/file.c (original)
> +++ trunk/libavformat/file.c Fri Aug 10 01:41:59 2007
> @@ -110,22 +110,11 @@ static int pipe_read(URLContext *h, unsi
> return read(fd, buf, size);
> }
>
> -static int pipe_write(URLContext *h, unsigned char *buf, int size)
> -{
> - int fd = (size_t)h->priv_data;
> - return write(fd, buf, size);
> -}
> -
> -static int pipe_close(URLContext *h)
> -{
> - return 0;
> -}
> -
> URLProtocol pipe_protocol = {
> "pipe",
> pipe_open,
> - pipe_read,
> - pipe_write,
> + file_read,
> + file_write,
> NULL,
> pipe_close,
> };
this breaks compilation
pipe_close() is missing
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- 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-cvslog/attachments/20070810/aa6332e9/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list