Commit b6fbc90c authored by Laurent Aimar's avatar Laurent Aimar

Fixed es select/unselected event.

parent f5ca137c
...@@ -1575,8 +1575,7 @@ static void EsSelect( es_out_t *out, es_out_id_t *es ) ...@@ -1575,8 +1575,7 @@ static void EsSelect( es_out_t *out, es_out_id_t *es )
/* Mark it as selected */ /* Mark it as selected */
input_SendEventEsSelect( p_input, es->fmt.i_cat, es->i_id ); input_SendEventEsSelect( p_input, es->fmt.i_cat, es->i_id );
if( EsFmtIsTeletext( &es->fmt ) ) input_SendEventTeletextSelect( p_input, EsFmtIsTeletext( &es->fmt ) ? es->i_id : -1 );
input_SendEventTeletextSelect( p_input, es->i_id );
} }
static void EsUnselect( es_out_t *out, es_out_id_t *es, bool b_update ) static void EsUnselect( es_out_t *out, es_out_id_t *es, bool b_update )
...@@ -1623,10 +1622,6 @@ static void EsUnselect( es_out_t *out, es_out_id_t *es, bool b_update ) ...@@ -1623,10 +1622,6 @@ static void EsUnselect( es_out_t *out, es_out_id_t *es, bool b_update )
if( !b_update ) if( !b_update )
return; return;
/* Update var */
if( es->p_dec == NULL )
return;
/* Mark it as unselected */ /* Mark it as unselected */
input_SendEventEsSelect( p_input, es->fmt.i_cat, -1 ); input_SendEventEsSelect( p_input, es->fmt.i_cat, -1 );
if( EsFmtIsTeletext( &es->fmt ) ) if( EsFmtIsTeletext( &es->fmt ) )
......
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