From 607f534f650d913e055632f1e54874c0808c196c Mon Sep 17 00:00:00 2001 From: "hlundin@google.com" Date: Wed, 1 Jun 2011 08:25:30 +0000 Subject: [PATCH] Make NetEqRTPplay build with logging enabled on linux Removed some platform specific path tools so that NetEqRTPplay can be built with NETEQ_DELAY_LOGGING enabled on linux (and other platforms). Review URL: http://webrtc-codereview.appspot.com/24009 git-svn-id: http://webrtc.googlecode.com/svn/trunk@28 4adac7df-926f-26a2-2b94-8c16560cd09d --- modules/audio_coding/NetEQ/main/test/NetEqRTPplay.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/audio_coding/NetEQ/main/test/NetEqRTPplay.cc b/modules/audio_coding/NetEQ/main/test/NetEqRTPplay.cc index 78cad7c7f..748380a02 100644 --- a/modules/audio_coding/NetEQ/main/test/NetEqRTPplay.cc +++ b/modules/audio_coding/NetEQ/main/test/NetEqRTPplay.cc @@ -328,9 +328,12 @@ int main(int argc, char* argv[]) #ifdef NETEQ_DELAY_LOGGING char delayfile[MY_MAX_PATH]; - +#ifdef WIN32 _splitpath(outfilename,outdrive,outpath,outfile,outext); _makepath(delayfile,outdrive,outpath,outfile,"d"); +#else + sprintf(delayfile, "%s.d", outfilename); +#endif delay_fid2 = fopen(delayfile,"wb"); fprintf(delay_fid2, "#!NetEQ_Delay_Logging%s\n", NETEQ_DELAY_LOGGING_VERSION_STRING); #endif