[FFmpeg-cvslog] r10047 - trunk/libavformat/file.c
Ramiro Ribeiro Polla
ramiro
Fri Aug 10 17:43:56 CEST 2007
Aurelien Jacobs wrote:
> On Fri, 10 Aug 2007 03:39:26 +0200 (CEST)
> ramiro <subversion at mplayerhq.hu> wrote:
>
>
>> Author: ramiro
>> Date: Fri Aug 10 03:39:26 2007
>> New Revision: 10047
>>
>> Log:
>> 10l: removed pipe_close instead of pipe_read
>>
>> Modified:
>> trunk/libavformat/file.c
>>
>> Modified: trunk/libavformat/file.c
>> ==============================================================================
>> --- trunk/libavformat/file.c (original)
>> +++ trunk/libavformat/file.c Fri Aug 10 03:39:26 2007
>> @@ -104,10 +104,9 @@ static int pipe_open(URLContext *h, cons
>> return 0;
>> }
>>
>> -static int pipe_read(URLContext *h, unsigned char *buf, int size)
>> +static int pipe_close(URLContext *h)
>> {
>> - int fd = (size_t)h->priv_data;
>> - return read(fd, buf, size);
>> + return 0;
>> }
>>
>
> Note that pipe_close() could be removed too as it don't do anything...
>
>
I checked for that, but it's an URLProtocol, not a format. lavf doens't
check if close exists before calling it, like it does for formats. And
it makes sense, since only pipe would benefit from that.
More information about the ffmpeg-cvslog
mailing list