我有一些class file.h,其中public:bool frameSendingFinished;
被定義。 因此,在類邏輯我創建和編碼視頻幀,現在我想發送到一些服務器使用ffmpeg。我想在單獨的線程中發送所以在我的班級功能之一(file.cpp)我做的:Boost線程和FFmpeg:這樣簡單的代碼給我錯誤C2064。我做錯了什麼方式?
if (frameSendingFinished)
{
boost::thread UrlWriteFrame(url_context, (unsigned char *)pb_buffer, len);
}
....// some other functions code etc.
void VideoEncoder::UrlWriteFrame(URLContext *h, const unsigned char *buf, int size)
{
frameSendingFinished =false;
url_write (h, (unsigned char *)buf, size);
frameSendingFinished =true;
}
它與創造出新的線程。在談到螺紋線使得它編譯...
這樣的錯誤是error c2064 term does not evaluate to a function taking 2 arguments
所以 - 我該怎麼辦我的代碼,使升壓工作,在我的課?