From 3e024095d5683f9e5f7131e93cb7b92d486525c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=B8=85?= Date: Thu, 26 Aug 2021 11:31:12 +0000 Subject: [PATCH] Signed-off-by: mamingshuai --- media/camera_sample.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media/camera_sample.cpp b/media/camera_sample.cpp index e19c545..f6ebf1e 100755 --- a/media/camera_sample.cpp +++ b/media/camera_sample.cpp @@ -40,9 +40,9 @@ static int32_t SampleGetRecordFd() if (ltm != nullptr) { ostringstream ss("Capture_"); ss << "Record" << ltm->tm_hour << "-" << ltm->tm_min << "-" << ltm->tm_sec << ".mp4"; - fd = open(("/sdcard/" + ss.str()).c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); + fd = open(("/userdata/video/" + ss.str()).c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); cout << "Open " - << "/sdcard/" << ss.str() << endl; + << "/userdata/video/" << ss.str() << endl; if (fd == -1) { cout << "Open recorder file failed. strerr=" << strerror(errno) << endl; -- GitLab