Changeset 3831


Ignore:
Timestamp:
Oct 19, 2011 1:17:08 PM (12 years ago)
Author:
bennylp
Message:

Misc: failed to create CSV file with TRACE_JB feature in stream.c because Linux does not seem to create the file if it is opened with fopen(, "r+b") and the file does not exist yet. Thanks Dan for the patch (re #1252)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/src/pjmedia/stream.c

    r3572 r3831  
    23312331                         TRACE_JB_PATH_PREFIX "%s.csv", 
    23322332                         stream->port.info.name.ptr); 
    2333         status = pj_file_open(pool, trace_name, PJ_O_RDWR, &stream->trace_jb_fd); 
     2333        status = pj_file_open(pool, trace_name, PJ_O_WRONLY, &stream->trace_jb_fd); 
    23342334        if (status != PJ_SUCCESS) { 
    23352335            stream->trace_jb_fd = TRACE_JB_INVALID_FD; 
Note: See TracChangeset for help on using the changeset viewer.