diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-10-19 13:17:08 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-10-19 13:17:08 +0000 |
commit | 5bb1906eb20c267a5b0dd89776cf2b76aaecd9e0 (patch) | |
tree | a91ff82605055b6cf4d976308bed91a03001b122 | |
parent | 383aba12a88e5df34ded72dfd7272291be7518d4 (diff) |
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)
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3831 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjmedia/src/pjmedia/stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia/stream.c b/pjmedia/src/pjmedia/stream.c index 467d07ab..8313c401 100644 --- a/pjmedia/src/pjmedia/stream.c +++ b/pjmedia/src/pjmedia/stream.c @@ -2330,7 +2330,7 @@ PJ_DEF(pj_status_t) pjmedia_stream_create( pjmedia_endpt *endpt, pj_ansi_snprintf(trace_name, sizeof(trace_name), TRACE_JB_PATH_PREFIX "%s.csv", stream->port.info.name.ptr); - status = pj_file_open(pool, trace_name, PJ_O_RDWR, &stream->trace_jb_fd); + status = pj_file_open(pool, trace_name, PJ_O_WRONLY, &stream->trace_jb_fd); if (status != PJ_SUCCESS) { stream->trace_jb_fd = TRACE_JB_INVALID_FD; PJ_LOG(3,(THIS_FILE, "Failed creating RTP trace file '%s'", |