diff --git a/media/camera_sample.cpp b/media/camera_sample.cpp index e19c5451c00cba0fd48a50bdbab2c9372a49836e..f6ebf1e8af63d5ba67488ad4c6a800c85cc125b9 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;