[vlc-commits] commit: Fix libvlc_media_player_(prev|next)_chapter assertion ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Sun Nov 7 09:32:56 CET 2010
vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 7 10:30:46 2010 +0200| [3d6df97889257b2feae3a0e3c8ae89026c7d3083] | committer: Rémi Denis-Courmont
Fix libvlc_media_player_(prev|next)_chapter assertion
The variables are void, not boolean.
(cherry picked from commit 9ce38b5f85c6bd756b55e30ae66da6b19021ff72)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=3d6df97889257b2feae3a0e3c8ae89026c7d3083
---
src/control/media_player.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/control/media_player.c b/src/control/media_player.c
index 0336f3c..3013bc0 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -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 );
}
More information about the vlc-commits
mailing list