[vlc-commits] input_control: i_title_offset was not the current title

Francois Cartegnie git at videolan.org
Wed Jul 20 20:35:05 CEST 2011


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 20 20:28:20 2011 +0200| [fe231329f99c274a73112d9bb9a6bb2f311d450a] | committer: Francois Cartegnie

input_control: i_title_offset was not the current title

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

 src/input/control.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/input/control.c b/src/input/control.c
index de8d8a1..a1d80bd 100644
--- a/src/input/control.c
+++ b/src/input/control.c
@@ -332,9 +332,9 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
 
             vlc_mutex_lock( &p_input->p->p_item->lock );
 
-            /* current title if -1 */
-            if ( *pi_req_title_offset < 0 )
-                *pi_req_title_offset = p_input->p->i_title_offset;
+            int i_current_title = var_GetInteger( p_input, "title" );
+            if ( *pi_req_title_offset < 0 ) /* return current title if -1 */
+                *pi_req_title_offset = i_current_title;
 
             if( p_input->p->i_title && p_input->p->i_title > *pi_req_title_offset )
             {



More information about the vlc-commits mailing list