[mpp]: Return buffer full when poll failed

For ffmpeg plugin compatible.

Change-Id: Iba580bd63de249f6a633e2c0ec8618addeee9ef1
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2021-03-17 10:38:24 +08:00
parent 5599465f7d
commit 690e96685e

View File

@@ -315,8 +315,10 @@ MPP_RET Mpp::put_packet(MppPacket packet)
goto RET;
/* non-eos packet should reserve one task for eos case */
if (!eos && ret <= mDecResTaskCnt)
if (!eos && ret <= mDecResTaskCnt) {
ret = MPP_ERR_BUFFER_FULL;
goto RET;
}
/* do not pull here to avoid block wait */
dequeue(MPP_PORT_INPUT, &task_dequeue);