changeset 32595:fc443754da3d

Reset mpvdec to NULL after uninit.
author reimar
date Sat, 11 Dec 2010 14:40:39 +0000
parents 24e4682ce6ec
children 7f521af5122f
files libmpcodecs/dec_video.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/dec_video.c	Sat Dec 11 13:56:19 2010 +0000
+++ b/libmpcodecs/dec_video.c	Sat Dec 11 14:40:39 2010 +0000
@@ -176,6 +176,7 @@
         return;
     mp_msg(MSGT_DECVIDEO, MSGL_V, MSGTR_UninitVideoStr, sh_video->codec->drv);
     mpvdec->uninit(sh_video);
+    mpvdec = NULL;
 #ifdef CONFIG_DYNAMIC_PLUGINS
     if (sh_video->dec_handle)
         dlclose(sh_video->dec_handle);