Commit 1994eafa authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

release_input_thread: NULL check after dereference

parent 5af0a5d4
......@@ -102,13 +102,12 @@ static inline void unlock(libvlc_media_player_t *mp)
*/
static void release_input_thread( libvlc_media_player_t *p_mi, bool b_input_abort )
{
input_thread_t * p_input_thread;
assert( p_mi );
if( !p_mi || !p_mi->p_input_thread )
input_thread_t *p_input_thread = p_mi->p_input_thread;
if( !p_input_thread )
return;
p_input_thread = p_mi->p_input_thread;
var_DelCallback( p_input_thread, "can-seek",
input_seekable_changed, p_mi );
var_DelCallback( p_input_thread, "can-pause",
......
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