Commit 7c849b4c authored by Rafaël Carré's avatar Rafaël Carré

Asserts p_this on __vlc_mutex_init()

parent b5a8bebd
......@@ -27,6 +27,7 @@
#include <vlc/vlc.h>
#include "libvlc.h"
#include <assert.h>
#define VLC_THREADS_UNINITIALIZED 0
#define VLC_THREADS_PENDING 1
......@@ -238,6 +239,7 @@ int __vlc_threads_end( vlc_object_t *p_this )
*****************************************************************************/
int __vlc_mutex_init( vlc_object_t *p_this, vlc_mutex_t *p_mutex )
{
assert( p_this );
p_mutex->p_this = p_this;
#if defined( PTH_INIT_IN_PTH_H )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment