[vlc-devel] commit: Emit INPUT_EVENT_TITLE/SEEKPOINT when needed. (Laurent Aimar )
git version control
git at videolan.org
Thu Feb 12 23:59:03 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Feb 12 23:54:44 2009 +0100| [0e2340e0624b07b0fda8a26942ad311f2375f0ca] | committer: Laurent Aimar
Emit INPUT_EVENT_TITLE/SEEKPOINT when needed.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0e2340e0624b07b0fda8a26942ad311f2375f0ca
---
src/input/input.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/input/input.c b/src/input/input.c
index 49abe70..cb9e6de 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -891,7 +891,7 @@ static void InitTitle( input_thread_t * p_input )
{
/* Setup variables */
input_ControlVarNavigation( p_input );
- input_ControlVarTitle( p_input, 0 );
+ input_SendEventTitle( p_input, 0 );
}
/* Global flag */
@@ -1880,7 +1880,7 @@ static bool Control( input_thread_t *p_input, int i_type,
es_out_SetTime( p_input->p->p_es_out, -1 );
demux_Control( p_demux, DEMUX_SET_TITLE, i_title );
- input_ControlVarTitle( p_input, i_title );
+ input_SendEventTitle( p_input, i_title );
}
}
else if( p_input->p->input.i_title > 0 )
@@ -1901,6 +1901,7 @@ static bool Control( input_thread_t *p_input, int i_type,
stream_Control( p_input->p->input.p_stream, STREAM_CONTROL_ACCESS,
ACCESS_SET_TITLE, i_title );
+ input_SendEventTitle( p_input, i_title );
}
}
break;
@@ -1946,6 +1947,7 @@ static bool Control( input_thread_t *p_input, int i_type,
es_out_SetTime( p_input->p->p_es_out, -1 );
demux_Control( p_demux, DEMUX_SET_SEEKPOINT, i_seekpoint );
+ input_SendEventSeekpoint( p_input, p_demux->info.i_title, i_seekpoint );
}
}
else if( p_input->p->input.i_title > 0 )
@@ -1980,6 +1982,7 @@ static bool Control( input_thread_t *p_input, int i_type,
stream_Control( p_input->p->input.p_stream, STREAM_CONTROL_ACCESS,
ACCESS_SET_SEEKPOINT, i_seekpoint );
+ input_SendEventSeekpoint( p_input, p_access->info.i_title, i_seekpoint );
}
}
break;
More information about the vlc-devel
mailing list