[vlc-commits] Reset input titles before adding new ones.

Petri Hintukainen git at videolan.org
Tue Jan 28 10:43:28 CET 2014


vlc | branch: master | Petri Hintukainen <phintuka at users.sourceforge.net> | Mon Aug 19 18:15:01 2013 +0300| [f7e78fb2cb603de3cd1ab27e48055484a966be56] | committer: Jean-Baptiste Kempf

Reset input titles before adding new ones.

Fixes duplicate entries in title menu after INPUT_UPDATE_TITLE_LIST.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f7e78fb2cb603de3cd1ab27e48055484a966be56
---

 src/input/var.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/input/var.c b/src/input/var.c
index 6ec28f0..3e722f4 100644
--- a/src/input/var.c
+++ b/src/input/var.c
@@ -285,6 +285,8 @@ void input_ControlVarNavigation( input_thread_t *p_input )
     if( !val.psz_string )
         return;
 
+    var_Change( p_input, "title", VLC_VAR_CLEARCHOICES, NULL, NULL );
+
     for( i = 0; i < p_input->p->i_title; i++ )
     {
         vlc_value_t val2, text2;



More information about the vlc-commits mailing list