[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:31:48 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov  7 10:30:46 2010 +0200| [9ce38b5f85c6bd756b55e30ae66da6b19021ff72] | committer: Rémi Denis-Courmont 

Fix libvlc_media_player_(prev|next)_chapter assertion

The variables are void, not boolean.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ce38b5f85c6bd756b55e30ae66da6b19021ff72
---

 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 826ff5b..ae814e6 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -1123,8 +1123,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 );
 }
@@ -1138,8 +1138,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