/[tivodecode]/tivodecode/trunk/tivodecoder.c
ViewVC logotype

Diff of /tivodecode/trunk/tivodecoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 65 by jeremyd2019, Tue Dec 12 20:56:19 2006 UTC revision 66 by jeremyd2019, Wed Dec 13 00:43:25 2006 UTC
# Line 156  static int do_header(BYTE * arg_0, int * block_no, int Line 156  static int do_header(BYTE * arg_0, int * block_no, int
156  /*  /*
157   * called for each frame   * called for each frame
158   */   */
159  int process_frame(unsigned char code, turing_state * turing, off_t packet_start, void * packet_stream, read_func_t read_handler, FILE * ofh)  int process_frame(unsigned char code, turing_state * turing, off_t packet_start, void * packet_stream, read_func_t read_handler, void * ofh, write_func_t write_handler)
160  {  {
161      static unsigned char packet_buffer[65536 + 3];      static unsigned char packet_buffer[65536 + 3];
162      unsigned char bytes[32];      unsigned char bytes[32];
# Line 327  int process_frame(unsigned char code, turing_state * t Line 327  int process_frame(unsigned char code, turing_state * t
327                          packet_buffer[1+2] &= ~0x20;                          packet_buffer[1+2] &= ~0x20;
328                      }                      }
329    
330                      if (fwrite(packet_buffer, 1, length + 3, ofh) != length + 3)                      if (write_handler(packet_buffer, length + 3, ofh) != length + 3)
331                      {                      {
332                          perror ("writing buffer");                          perror ("writing buffer");
333                      }                      }

Legend:
Removed from v.65  
changed lines
  Added in v.66

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13