Commit d81aac69 authored by Laurent Aimar's avatar Laurent Aimar

Fixed event on UNKNOWN_ES es.

parent 132b8e6f
...@@ -257,6 +257,9 @@ void input_SendEventEsDel( input_thread_t *p_input, int i_cat, int i_id ) ...@@ -257,6 +257,9 @@ void input_SendEventEsDel( input_thread_t *p_input, int i_cat, int i_id )
{ {
vlc_value_t val; vlc_value_t val;
if( i_cat == UNKNOWN_ES )
return;
if( i_id >= 0 ) if( i_id >= 0 )
{ {
val.i_int = i_id; val.i_int = i_id;
...@@ -274,6 +277,9 @@ void input_SendEventEsAdd( input_thread_t *p_input, int i_cat, int i_id, const c ...@@ -274,6 +277,9 @@ void input_SendEventEsAdd( input_thread_t *p_input, int i_cat, int i_id, const c
vlc_value_t val; vlc_value_t val;
vlc_value_t text; vlc_value_t text;
if( i_cat == UNKNOWN_ES )
return;
val.i_int = i_id; val.i_int = i_id;
text.psz_string = (char*)psz_text; text.psz_string = (char*)psz_text;
...@@ -288,6 +294,9 @@ void input_SendEventEsSelect( input_thread_t *p_input, int i_cat, int i_id ) ...@@ -288,6 +294,9 @@ void input_SendEventEsSelect( input_thread_t *p_input, int i_cat, int i_id )
{ {
vlc_value_t val; vlc_value_t val;
if( i_cat == UNKNOWN_ES )
return;
val.i_int = i_id; val.i_int = i_id;
var_Change( p_input, GetEsVarName( i_cat ), VLC_VAR_SETVALUE, &val, NULL ); var_Change( p_input, GetEsVarName( i_cat ), VLC_VAR_SETVALUE, &val, NULL );
......
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