diff options
Diffstat (limited to 'libavdevice/sdl.c')
-rw-r--r-- | libavdevice/sdl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/sdl.c b/libavdevice/sdl.c index 2f36f632d9..bef50417e7 100644 --- a/libavdevice/sdl.c +++ b/libavdevice/sdl.c @@ -71,12 +71,16 @@ static int sdl_write_trailer(AVFormatContext *s) if (sdl->overlay) SDL_FreeYUVOverlay(sdl->overlay); + sdl->overlay = NULL; if (sdl->event_thread) SDL_WaitThread(sdl->event_thread, NULL); + sdl->event_thread = NULL; if (sdl->mutex) SDL_DestroyMutex(sdl->mutex); + sdl->mutex = NULL; if (sdl->init_cond) SDL_DestroyCond(sdl->init_cond); + sdl->init_cond = NULL; if (!sdl->sdl_was_already_inited) SDL_Quit(); |