[MPlayer-cvslog] r29866 - trunk/libmpcodecs/dec_teletext.c

reimar subversion at mplayerhq.hu
Mon Nov 9 16:37:15 CET 2009


Author: reimar
Date: Mon Nov  9 16:37:15 2009
New Revision: 29866

Log:
Properly free the pthread mutex for teletext.

Modified:
   trunk/libmpcodecs/dec_teletext.c

Modified: trunk/libmpcodecs/dec_teletext.c
==============================================================================
--- trunk/libmpcodecs/dec_teletext.c	Mon Nov  9 16:34:55 2009	(r29865)
+++ trunk/libmpcodecs/dec_teletext.c	Mon Nov  9 16:37:15 2009	(r29866)
@@ -95,6 +95,7 @@
 #include <pthread.h>
 #else
 #define pthread_mutex_init(m, p)
+#define pthread_mutex_destroy(m)
 #define pthread_mutex_lock(m)
 #define pthread_mutex_unlock(m)
 #endif
@@ -1738,6 +1739,7 @@ int teletext_control(void* p, int cmd, v
             free(priv->ptsp);
         destroy_cache(priv);
         priv->page_changed=1;
+        pthread_mutex_destroy(&priv->buffer_mutex);
         free(priv);
         return VBI_CONTROL_TRUE;
     }


More information about the MPlayer-cvslog mailing list