SDL_DestroyMutex(is->subpq_mutex); SDL_DestroyCond(is->subpq_cond); SDL_DestroyMutex(is->subtitle_decoder_mutex);
static void stream_close(VideoState *is){    VideoPicture *vp;    int i;    /* XXX: use a special url_shutdown call to abort parse cleanly */    is->abort_request = 1;    SDL_WaitThread(is->parse_tid, NULL);    /* free all pictures */    for(i=0;i<VIDEO_PICTURE_QUEUE_SIZE; i++) {        vp = &is->pictq[i];        if (vp->bmp) {            SDL_FreeYUVOverlay(vp->bmp);            vp->bmp = NULL;        }    }    SDL_DestroyMutex(is->pictq_mutex);    SDL_DestroyCond(is->pictq_cond);    SDL_DestroyMutex(is->audio_decoder_mutex);    SDL_DestroyMutex(is->video_decoder_mutex);}