Loading
RTSP: Return the buffers in source side while the source is disconnected
There is a race condition, some buffers are held by the source because of the poor network environment. If the client tries to flush at this time, the flush operation will be blocked because not all the buffers are returned to the client. At this time, sometimes, the source will be disconnected from the server, then these buffers held by the source won't be returned any more. Without this patch, flush operation maybe won't finish, and blocks other operations, causing ANR. Change-Id: I19581498d17a29b637d5468932438ea862e1c7ff