Changeset 2541

Show
Ignore:
Timestamp:
2006-10-29 23:48:46 (2 years ago)
Author:
shans
Message:

Made sure anxed picks up error returns from anx_write.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libannodex/trunk/src/tools/anxed.c

    r1201 r2541  
    4242#include "common.h" 
    4343 
    44 /*#define DEBUG*/ 
     44#define DEBUG 
    4545 
    4646#define ANX_CONTENT_TYPE "application/x-annodex" 
    4747 
    4848#define MEDIA_BUF_LEN 8192 
    49  
    5049 
    5150/* 
     
    205204  } 
    206205 
    207   while ((n = anx_write (anx, 1024)) != 0); 
     206  while ((n = anx_write (anx, 1024)) > 0); 
     207  if (n < 0) { 
     208    printf("ERROR: %ld\n", n); 
     209  } 
    208210 
    209211  if (anx_close (anx) != NULL) {