/* Access has to maintain them uptodate */
struct
{
- unsigned int i_update; /* Access sets them on change,
- Input removes them once take into account*/
-
uint64_t i_pos; /* idem */
bool b_eof; /* idem */
-
- int i_title; /* idem, start from 0 (could be menu) */
- int i_seekpoint;/* idem, start from 0 */
} info;
access_sys_t *p_sys;
static inline void access_InitFields( access_t *p_a )
{
- p_a->info.i_update = 0;
p_a->info.i_pos = 0;
p_a->info.b_eof = false;
- p_a->info.i_title = 0;
- p_a->info.i_seekpoint = 0;
}
/**
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 */
typedef struct demux_meta_t
* 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.
*/
p_access->pf_seek = NULL;
p_access->info.i_pos = 0;
p_access->info.b_eof = false;
- p_access->info.i_title = 0;
- p_access->info.i_seekpoint = 0;
p_access->p_sys = p_sys;
/* Everything is ready. Let's rock baby */
p_access->pf_control = Control;
p_access->info.i_pos = 0;
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 ) );
if( !p_sys )
return VLC_ENOMEM;