提交 3e024095 编写于 作者: 杨帅 提交者: Gitee

Signed-off-by: mamingshuai <mamingshuai1@huawei.com>

上级 24324836
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册