diff options
author | wm4 <wm4@nowhere> | 2012-08-02 22:47:56 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-02 23:22:52 +0200 |
commit | 7059c15f4af047d29bed9ea8b17a3702980b8442 (patch) | |
tree | b66abd6b9d1f87c2dda92fc926419ec1928a2597 /stream/stream.c | |
parent | e48b21dd87468245268c470b250c3cdd5a1bbfae (diff) | |
download | mpv-7059c15f4af047d29bed9ea8b17a3702980b8442.tar.bz2 mpv-7059c15f4af047d29bed9ea8b17a3702980b8442.tar.xz |
mplayer: rip out --capture support
While this was an interesting idea, it wasn't actually useful.
Basically it dumped the raw data (as requested by the demuxer) into a
file. The result is only useful if the file format was raw or maybe
some MPEG packet stream, but not with most modern file formats.
Diffstat (limited to 'stream/stream.c')
-rw-r--r-- | stream/stream.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/stream/stream.c b/stream/stream.c index c4b36dc436..5a0aa7d7dd 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -262,16 +262,6 @@ stream_t *open_output_stream(const char *filename, struct MPOpts *options) //=================== STREAMER ========================= -void stream_capture_do(stream_t *s) -{ - if (fwrite(s->buffer, s->buf_len, 1, s->capture_file) < 1) { - mp_tmsg(MSGT_GLOBAL, MSGL_ERR, "Error writing capture file: %s\n", - strerror(errno)); - fclose(s->capture_file); - s->capture_file = NULL; - } -} - int stream_read_internal(stream_t *s, void *buf, int len) { int orig_len = len; @@ -339,8 +329,6 @@ int stream_fill_buffer(stream_t *s){ s->buf_pos=0; s->buf_len=len; // printf("[%d]",len);fflush(stdout); - if (s->capture_file) - stream_capture_do(s); return len; } @@ -520,10 +508,6 @@ void free_stream(stream_t *s){ #ifdef CONFIG_STREAM_CACHE cache_uninit(s); #endif - if (s->capture_file) { - fclose(s->capture_file); - s->capture_file = NULL; - } if(s->close) s->close(s); if(s->fd>0){ |