Commit 3d6df978 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix libvlc_media_player_(prev|next)_chapter assertion

The variables are void, not boolean.
(cherry picked from commit 9ce38b5f)
parent 7ed45573
......@@ -1097,8 +1097,8 @@ void libvlc_media_player_next_chapter( libvlc_media_player_t *p_mi )
return;
int i_type = var_Type( p_input_thread, "next-chapter" );
var_SetBool( p_input_thread, (i_type & VLC_VAR_TYPE) != 0 ?
"next-chapter":"next-title", true );
var_TriggerCallback( p_input_thread, (i_type & VLC_VAR_TYPE) != 0 ?
"next-chapter":"next-title" );
vlc_object_release( p_input_thread );
}
......@@ -1112,8 +1112,8 @@ void libvlc_media_player_previous_chapter( libvlc_media_player_t *p_mi )
return;
int i_type = var_Type( p_input_thread, "next-chapter" );
var_SetBool( p_input_thread, (i_type & VLC_VAR_TYPE) != 0 ?
"prev-chapter":"prev-title", true );
var_TriggerCallback( p_input_thread, (i_type & VLC_VAR_TYPE) != 0 ?
"prev-chapter":"prev-title" );
vlc_object_release( p_input_thread );
}
......
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