Commit 368b4f25 authored by Laurent Aimar's avatar Laurent Aimar

Added INPUT_EVENT_ITEM_EPG event.

parent 9fcd7b2f
......@@ -414,6 +414,8 @@ typedef enum input_event_type_e
INPUT_EVENT_ITEM_INFO,
/* input_item_t name has changed */
INPUT_EVENT_ITEM_NAME,
/* input_item_t epg has changed */
INPUT_EVENT_ITEM_EPG,
/* Input statistics have been updated */
INPUT_EVENT_STATISTICS,
......
......@@ -373,6 +373,7 @@ static void EsOutDelete( es_out_t *out )
TAB_CLEAN( p_sys->i_pgrm, p_sys->pgrm );
input_item_SetEpgOffline( p_sys->p_input->p->p_item );
input_SendEventMetaEpg( p_sys->p_input );
vlc_mutex_destroy( &p_sys->lock );
......@@ -1267,6 +1268,7 @@ static void EsOutProgramEpg( es_out_t *out, int i_group, const vlc_epg_t *p_epg
epg.psz_name = psz_cat;
input_item_SetEpg( p_item, &epg );
input_SendEventMetaEpg( p_sys->p_input );
/* Update now playing */
free( p_pgrm->psz_now_playing );
......
......@@ -233,6 +233,10 @@ void input_SendEventMetaName( input_thread_t *p_input, const char *psz_name )
vlc_event_send( &p_input->p->p_item->event_manager, &event );
}
void input_SendEventMetaEpg( input_thread_t *p_input )
{
Trigger( p_input, INPUT_EVENT_ITEM_EPG );
}
/*****************************************************************************
* Event for es_out.c
*****************************************************************************/
......
......@@ -52,6 +52,7 @@ void input_SendEventCache( input_thread_t *p_input, double f_level );
void input_SendEventMeta( input_thread_t *p_input );
void input_SendEventMetaInfo( input_thread_t *p_input );
void input_SendEventMetaName( input_thread_t *p_input, const char *psz_name );
void input_SendEventMetaEpg( input_thread_t *p_input );
/*****************************************************************************
* Event for es_out.c
......
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