MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / addFrame

Method addFrame

framework/cacheModule/cache/CacheFileRemuxer.cpp:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void CacheFileRemuxer::addFrame(const IAFPacket *frame, StreamType type)
44{
45 if (frame == nullptr) {
46 mFrameEof = true;
47 } else {
48 mFrameEof = false;
49
50 FrameInfo *info = new FrameInfo();
51 info->frame = frame->clone();
52 info->type = type;
53 {
54 std::unique_lock<mutex> lock(mQueueMutex);
55 mFrameInfoQueue.push_back(std::unique_ptr<FrameInfo>(info));
56 mQueueCondition.notify_one();
57 }
58 }
59}
60
61
62bool CacheFileRemuxer::prepare()

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected