From 0f5582689b07f368f7d0e87c5b903590998eef53 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Fri, 18 Oct 2019 09:58:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E6=AD=A2=E8=B6=8A=E6=9D=83=E8=AE=BF?= =?UTF-8?q?=E9=97=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/FFmpegSource.cpp | 2 +- src/MediaFile/MediaReader.cpp | 2 +- src/MediaFile/MediaRecorder.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/FFmpegSource.cpp b/server/FFmpegSource.cpp index 536bd63d..8d348453 100644 --- a/server/FFmpegSource.cpp +++ b/server/FFmpegSource.cpp @@ -64,7 +64,7 @@ void FFmpegSource::play(const string &src_url,const string &dst_url,int timeout_ char cmd[1024] = {0}; snprintf(cmd, sizeof(cmd),ffmpeg_cmd.data(),ffmpeg_bin.data(),src_url.data(),dst_url.data()); - _process.run(cmd,File::absolutePath("",true,ffmpeg_log)); + _process.run(cmd,File::absolutePath("",false,ffmpeg_log)); InfoL << cmd; if(_media_info._host == "127.0.0.1"){ diff --git a/src/MediaFile/MediaReader.cpp b/src/MediaFile/MediaReader.cpp index 4bcdcfc7..09d18659 100644 --- a/src/MediaFile/MediaReader.cpp +++ b/src/MediaFile/MediaReader.cpp @@ -48,7 +48,7 @@ MediaReader::MediaReader(const string &strVhost,const string &strApp, const stri }else{ strFileName = strApp + "/" + strId; } - strFileName = File::absolutePath(strFileName,true,recordPath); + strFileName = File::absolutePath(strFileName, false,recordPath); } _hMP4File = MP4Read(strFileName.data()); diff --git a/src/MediaFile/MediaRecorder.cpp b/src/MediaFile/MediaRecorder.cpp index 467f33cb..6ec9ae41 100644 --- a/src/MediaFile/MediaRecorder.cpp +++ b/src/MediaFile/MediaRecorder.cpp @@ -63,7 +63,7 @@ MediaRecorder::MediaRecorder(const string &strVhost_tmp, }else{ m3u8FilePath = strApp + "/" + strId + "/hls.m3u8"; } - m3u8FilePath = File::absolutePath(m3u8FilePath,true,hlsPath); + m3u8FilePath = File::absolutePath(m3u8FilePath,false,hlsPath); _hlsRecorder.reset(new HlsRecorder(m3u8FilePath,params,hlsBufSize, hlsDuration, hlsNum)); } #endif //defined(ENABLE_HLS) @@ -79,7 +79,7 @@ MediaRecorder::MediaRecorder(const string &strVhost_tmp, } else { mp4FilePath = recordAppName + "/" + strApp + "/" + strId + "/"; } - mp4FilePath = File::absolutePath(mp4FilePath,true,recordPath); + mp4FilePath = File::absolutePath(mp4FilePath,false,recordPath); _mp4Recorder.reset(new MP4Recorder(mp4FilePath,strVhost,strApp,strId)); } #endif //defined(ENABLE_MP4RECORD)