Mercurial > libavformat.hg
comparison file.c @ 2356:824b8284ce1a libavformat
10l: removed pipe_close instead of pipe_read
author | ramiro |
---|---|
date | Fri, 10 Aug 2007 01:39:26 +0000 |
parents | 3dfa90f47d53 |
children | be66ba5bc96d |
comparison
equal
deleted
inserted
replaced
2355:5f8354bc9c33 | 2356:824b8284ce1a |
---|---|
102 h->priv_data = (void *)(size_t)fd; | 102 h->priv_data = (void *)(size_t)fd; |
103 h->is_streamed = 1; | 103 h->is_streamed = 1; |
104 return 0; | 104 return 0; |
105 } | 105 } |
106 | 106 |
107 static int pipe_read(URLContext *h, unsigned char *buf, int size) | 107 static int pipe_close(URLContext *h) |
108 { | 108 { |
109 int fd = (size_t)h->priv_data; | 109 return 0; |
110 return read(fd, buf, size); | |
111 } | 110 } |
112 | 111 |
113 URLProtocol pipe_protocol = { | 112 URLProtocol pipe_protocol = { |
114 "pipe", | 113 "pipe", |
115 pipe_open, | 114 pipe_open, |