diff stream/cache2.c @ 32438:faefba58f413

Implement a basic capture feature, available through -capture. If a specified key is pressed during playback, the current stream is captured to a file, similar to what -dumpstream achieves. patch by P?sztor Szil?rd, don tricon hu
author diego
date Thu, 21 Oct 2010 18:19:30 +0000
parents 7459e0a25235
children 0c7c4ed0b7eb
line wrap: on
line diff
--- a/stream/cache2.c	Thu Oct 21 17:35:56 2010 +0000
+++ b/stream/cache2.c	Thu Oct 21 18:19:30 2010 +0000
@@ -510,6 +510,8 @@
   s->buf_len=len;
   s->pos+=len;
 //  printf("[%d]",len);fflush(stdout);
+  if (s->capture_file)
+    stream_capture_do(s);
   return len;
 
 }