Commit cea76269 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

access: remove info.i_(update|title|seekpoint)

parent 49b528cd
...@@ -104,14 +104,8 @@ struct access_t ...@@ -104,14 +104,8 @@ struct access_t
/* Access has to maintain them uptodate */ /* Access has to maintain them uptodate */
struct struct
{ {
unsigned int i_update; /* Access sets them on change,
Input removes them once take into account*/
uint64_t i_pos; /* idem */ uint64_t i_pos; /* idem */
bool b_eof; /* idem */ bool b_eof; /* idem */
int i_title; /* idem, start from 0 (could be menu) */
int i_seekpoint;/* idem, start from 0 */
} info; } info;
access_sys_t *p_sys; access_sys_t *p_sys;
...@@ -146,11 +140,8 @@ static inline uint64_t access_GetSize( access_t *p_access ) ...@@ -146,11 +140,8 @@ static inline uint64_t access_GetSize( access_t *p_access )
static inline void access_InitFields( access_t *p_a ) static inline void access_InitFields( access_t *p_a )
{ {
p_a->info.i_update = 0;
p_a->info.i_pos = 0; p_a->info.i_pos = 0;
p_a->info.b_eof = false; p_a->info.b_eof = false;
p_a->info.i_title = 0;
p_a->info.i_seekpoint = 0;
} }
/** /**
......
...@@ -77,6 +77,11 @@ struct demux_t ...@@ -77,6 +77,11 @@ struct demux_t
input_thread_t *p_input; input_thread_t *p_input;
}; };
/* demux_t.info.i_update field */
#define INPUT_UPDATE_TITLE 0x0010
#define INPUT_UPDATE_SEEKPOINT 0x0020
#define INPUT_UPDATE_META 0x0040
#define INPUT_UPDATE_TITLE_LIST 0x0100
/* demux_meta_t is returned by "meta reader" module to the demuxer */ /* demux_meta_t is returned by "meta reader" module to the demuxer */
typedef struct demux_meta_t typedef struct demux_meta_t
......
...@@ -202,12 +202,6 @@ static inline void vlc_input_attachment_Delete( input_attachment_t *a ) ...@@ -202,12 +202,6 @@ static inline void vlc_input_attachment_Delete( input_attachment_t *a )
* input defines/constants. * input defines/constants.
*****************************************************************************/ *****************************************************************************/
/* i_update field of access_t/demux_t */
#define INPUT_UPDATE_TITLE 0x0010
#define INPUT_UPDATE_SEEKPOINT 0x0020
#define INPUT_UPDATE_META 0x0040
#define INPUT_UPDATE_TITLE_LIST 0x0100
/** /**
* This defines private core storage for an input. * This defines private core storage for an input.
*/ */
......
...@@ -814,8 +814,6 @@ static int AccessOpen( vlc_object_t *p_this ) ...@@ -814,8 +814,6 @@ static int AccessOpen( vlc_object_t *p_this )
p_access->pf_seek = NULL; p_access->pf_seek = NULL;
p_access->info.i_pos = 0; p_access->info.i_pos = 0;
p_access->info.b_eof = false; p_access->info.b_eof = false;
p_access->info.i_title = 0;
p_access->info.i_seekpoint = 0;
p_access->p_sys = p_sys; p_access->p_sys = p_sys;
/* Everything is ready. Let's rock baby */ /* Everything is ready. Let's rock baby */
......
...@@ -161,8 +161,6 @@ static int Open( vlc_object_t *p_this ) ...@@ -161,8 +161,6 @@ static int Open( vlc_object_t *p_this )
p_access->pf_control = Control; p_access->pf_control = Control;
p_access->info.i_pos = 0; p_access->info.i_pos = 0;
p_access->info.b_eof = false; p_access->info.b_eof = false;
p_access->info.i_title = 0;
p_access->info.i_seekpoint = 0;
p_access->p_sys = p_sys = malloc( sizeof( access_sys_t ) ); p_access->p_sys = p_sys = malloc( sizeof( access_sys_t ) );
if( !p_sys ) if( !p_sys )
return VLC_ENOMEM; return VLC_ENOMEM;
......
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