From 7950b86a4bf821e126d5e5659b772ce32faa1445 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期二, 25 五月 2021 11:32:24 +0800 Subject: [PATCH] bug fixed declaration --- csrc/wrapper.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/csrc/wrapper.cpp b/csrc/wrapper.cpp index 0a0e84f..4b6bd93 100644 --- a/csrc/wrapper.cpp +++ b/csrc/wrapper.cpp @@ -112,7 +112,7 @@ prop.gpu_acc_ = !cpu_; prop.gpu_index_ = devid_; - std::unique_ptr<FormatIn> in(new FormatIn(prop.gpuAccl())); + std::unique_ptr<FormatIn> in(new FormatIn(prop, prop.gpuAccl())); int flag = -1; if (gb_){ flag = in->openGb28181(input, NULL); @@ -453,7 +453,7 @@ return flag; } - int GetGb28181Pic(const char *rtspUrl, char *retData, int *retDataLen){ + int GetGb28181Pic(const char *rtspUrl, char *retData, int *retDataLen, const int tt){ int ret = 0; std::string fn = rtspUrl; @@ -464,7 +464,7 @@ return -1; } - int retLen = handle_gb28181->capturePic(handle_gb28181, retData, retDataLen); + int retLen = handle_gb28181->capturePic(handle_gb28181, retData, retDataLen, tt); if(retLen == 0){ logIt("do capturePic failed:%d"); ret = -1; -- Gitblit v1.8.0