[vlc-devel] commit: Fixed es select/unselected event. (Laurent Aimar )
git version control
git at videolan.org
Sat Feb 14 00:46:33 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Feb 14 00:13:24 2009 +0100| [b6fbc90ce6164b5ef18443d06952b197cbd5c8a1] | committer: Laurent Aimar
Fixed es select/unselected event.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6fbc90ce6164b5ef18443d06952b197cbd5c8a1
---
src/input/es_out.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 479f34e..d33b5e8 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1575,8 +1575,7 @@ static void EsSelect( es_out_t *out, es_out_id_t *es )
/* Mark it as selected */
input_SendEventEsSelect( p_input, es->fmt.i_cat, es->i_id );
- if( EsFmtIsTeletext( &es->fmt ) )
- input_SendEventTeletextSelect( p_input, es->i_id );
+ input_SendEventTeletextSelect( p_input, EsFmtIsTeletext( &es->fmt ) ? es->i_id : -1 );
}
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 )
return;
- /* Update var */
- if( es->p_dec == NULL )
- return;
-
/* Mark it as unselected */
input_SendEventEsSelect( p_input, es->fmt.i_cat, -1 );
if( EsFmtIsTeletext( &es->fmt ) )
More information about the vlc-devel
mailing list