[vlc-commits] input: add input_item_SetEpgTime
Francois Cartegnie
git at videolan.org
Wed Dec 28 11:14:08 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Dec 27 15:52:17 2016 +0100| [003443e038aec8944da79e98c77e22aa6e07b638] | committer: Francois Cartegnie
input: add input_item_SetEpgTime
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=003443e038aec8944da79e98c77e22aa6e07b638
---
include/vlc_input_item.h | 1 +
src/input/input_interface.h | 1 +
src/input/item.c | 7 +++++++
3 files changed, 9 insertions(+)
diff --git a/include/vlc_input_item.h b/include/vlc_input_item.h
index c8ab221..baa19de 100644
--- a/include/vlc_input_item.h
+++ b/include/vlc_input_item.h
@@ -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 */
diff --git a/src/input/input_interface.h b/src/input/input_interface.h
index e44893e..b5f9795 100644
--- a/src/input/input_interface.h
+++ b/src/input/input_interface.h
@@ -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 * );
/**
diff --git a/src/input/item.c b/src/input/item.c
index d7eb159..b6a8667 100644
--- a/src/input/item.c
+++ b/src/input/item.c
@@ -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 );
More information about the vlc-commits
mailing list