[vlc-devel] [PATCH 06/13] add callback for new vlc value

Aaron Wang hughwung at gmail.com
Wed Sep 16 15:49:44 CEST 2015


---
 lib/media_player.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/media_player.c b/lib/media_player.c
index 2136ab8..c82f33b 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -861,6 +861,7 @@ static void add_es_callbacks( input_thread_t *p_input_thread, libvlc_media_playe
     var_AddCallback( p_input_thread, "video-es", input_es_selected, p_mi );
     var_AddCallback( p_input_thread, "audio-es", input_es_selected, p_mi );
     var_AddCallback( p_input_thread, "spu-es", input_es_selected, p_mi );
+    var_AddCallback( p_input_thread, "spu-es2", input_es_selected, p_mi );
 }
 
 static void del_es_callbacks( input_thread_t *p_input_thread, libvlc_media_player_t *p_mi )
@@ -871,6 +872,7 @@ static void del_es_callbacks( input_thread_t *p_input_thread, libvlc_media_playe
     var_DelCallback( p_input_thread, "video-es", input_es_selected, p_mi );
     var_DelCallback( p_input_thread, "audio-es", input_es_selected, p_mi );
     var_DelCallback( p_input_thread, "spu-es", input_es_selected, p_mi );
+    var_DelCallback( p_input_thread, "spu-es2", input_es_selected, p_mi );
 }
 
 /**************************************************************************
-- 
1.9.1



More information about the vlc-devel mailing list