Commit 003443e0 authored by François Cartegnie's avatar François Cartegnie 🤞

input: add input_item_SetEpgTime

parent e22bb098
......@@ -81,6 +81,7 @@ struct input_item_t
int i_epg; /**< Number of EPG entries */
vlc_epg_t **pp_epg; /**< EPG entries */
int64_t i_epg_time; /** EPG timedate as epoch time */
const vlc_epg_t *p_epg_table; /** running/selected program cur/next EPG table */
int i_slaves; /**< Number of slaves */
......
......@@ -37,6 +37,7 @@ void input_item_SetArtFetched( input_item_t *p_i, bool b_art_fetched );
void input_item_SetEpg( input_item_t *p_item, const vlc_epg_t *p_epg, bool );
void input_item_ChangeEPGSource( input_item_t *p_item, int i_source_id );
void input_item_SetEpgEvent( input_item_t *p_item, const vlc_epg_event_t *p_epg_evt );
void input_item_SetEpgTime( input_item_t *, int64_t );
void input_item_SetEpgOffline( input_item_t * );
/**
......
......@@ -1035,6 +1035,13 @@ void input_item_ChangeEPGSource( input_item_t *p_item, int i_source_id )
vlc_mutex_unlock( &p_item->lock );
}
void input_item_SetEpgTime( input_item_t *p_item, int64_t i_time )
{
vlc_mutex_lock( &p_item->lock );
p_item->i_epg_time = i_time;
vlc_mutex_unlock( &p_item->lock );
}
void input_item_SetEpgOffline( input_item_t *p_item )
{
input_item_ChangeEPGSource( p_item, -1 );
......
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