ffplay: free subtitle pictures on exit

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Marton Balint 2013-07-28 17:32:54 +02:00
parent 3b2e99fe9e
commit 9f120e034f

View File

@ -1018,6 +1018,8 @@ static void stream_close(VideoState *is)
vp->bmp = NULL;
}
}
for (i = 0; i < SUBPICTURE_QUEUE_SIZE; i++)
free_subpicture(&is->subpq[i]);
SDL_DestroyMutex(is->pictq_mutex);
SDL_DestroyCond(is->pictq_cond);
SDL_DestroyMutex(is->subpq_mutex);