Commit c33b49c1 authored by Gildas Bazin's avatar Gildas Bazin

* src/input/*: update position on title change.

parent a49efd30
...@@ -1383,6 +1383,8 @@ static void UpdateFromAccess( input_thread_t *p_input ) ...@@ -1383,6 +1383,8 @@ static void UpdateFromAccess( input_thread_t *p_input )
input_ControlVarTitle( p_input, p_access->info.i_title ); input_ControlVarTitle( p_input, p_access->info.i_title );
stream_AccessUpdate( p_input->input.p_stream );
p_access->info.i_update &= ~INPUT_UPDATE_TITLE; p_access->info.i_update &= ~INPUT_UPDATE_TITLE;
} }
if( p_access->info.i_update & INPUT_UPDATE_SEEKPOINT ) if( p_access->info.i_update & INPUT_UPDATE_SEEKPOINT )
......
...@@ -103,6 +103,7 @@ void input_ConfigVarInit ( input_thread_t * ); ...@@ -103,6 +103,7 @@ void input_ConfigVarInit ( input_thread_t * );
stream_t *stream_AccessNew( access_t *p_access ); stream_t *stream_AccessNew( access_t *p_access );
void stream_AccessDelete( stream_t *s ); void stream_AccessDelete( stream_t *s );
void stream_AccessReset( stream_t *s ); void stream_AccessReset( stream_t *s );
void stream_AccessUpdate( stream_t *s );
/* decoder.c FIXME make it public ?*/ /* decoder.c FIXME make it public ?*/
void input_DecoderDiscontinuity( decoder_t * p_dec ); void input_DecoderDiscontinuity( decoder_t * p_dec );
......
...@@ -339,6 +339,15 @@ void stream_AccessReset( stream_t *s ) ...@@ -339,6 +339,15 @@ void stream_AccessReset( stream_t *s )
} }
} }
/****************************************************************************
* stream_AccessUpdate:
****************************************************************************/
void stream_AccessUpdate( stream_t *s )
{
stream_sys_t *p_sys = s->p_sys;
p_sys->i_pos = p_sys->p_access->info.i_pos;
}
/**************************************************************************** /****************************************************************************
* AStreamControl: * AStreamControl:
****************************************************************************/ ****************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment