]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/input_manager.cpp
(prev|next)-(chapter|title) is a void variable. Fix aborts.
[vlc] / modules / gui / qt4 / input_manager.cpp
index 312dce101a950b3442f5159ae5cc9a51358ea29f..f0b4a1c5be3d3741b1fac4abd14285d5aea4d2b8 100644 (file)
@@ -664,8 +664,8 @@ void InputManager::sectionPrev()
     if( hasInput() )
     {
         int i_type = var_Type( p_input, "next-chapter" );
-        var_SetBool( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
-                            "prev-chapter":"prev-title", true );
+        var_SetVoid( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
+                            "prev-chapter":"prev-title" );
     }
 }
 
@@ -674,8 +674,8 @@ void InputManager::sectionNext()
     if( hasInput() )
     {
         int i_type = var_Type( p_input, "next-chapter" );
-        var_SetBool( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
-                            "next-chapter":"next-title", true );
+        var_SetVoid( p_input, (i_type & VLC_VAR_TYPE) != 0 ?
+                            "next-chapter":"next-title" );
     }
 }