libvideorender: CB1 video frame buffer leak [1/1]
PD#TV-123765
Problem:
video buffer memory leak happend when tsplayer send the same pts
of frame data, but realtime is not equal.
Solution:
using realtime to manage video buffer
Verify:
ap222
Change-Id: I0fed7fa8f9f6817a844ab384ac7f793582e0c10e
Signed-off-by: fei.deng <fei.deng@amlogic.com>
diff --git a/weston/wayland_plugin.cpp b/weston/wayland_plugin.cpp
index 2a91053..96d2aa3 100644
--- a/weston/wayland_plugin.cpp
+++ b/weston/wayland_plugin.cpp
@@ -133,6 +133,7 @@
mQueue->push(buffer);
DEBUG(mLogCategory,"queue size:%d,pts:%lld us",mQueue->getCnt(),buffer->pts/1000);
} else {
+ buffer->time = displayTime;
mDisplay->displayFrameBuffer(buffer, displayTime);
}
return NO_ERROR;