mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-04 16:52:40 +08:00
[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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user