[vlc-devel] commit: Revert "Keep p_input->i_state when adding a subtitle on the fly. ( Laurent Aimar )

git version control git at videolan.org
Sat Aug 23 16:53:34 CEST 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Aug 23 16:50:53 2008 +0200| [dc06ad9ff8c25518ebbc81463b2ec85d8fd874c2] | committer: Laurent Aimar 

Revert "Keep p_input->i_state when adding a subtitle on the fly.

I will properly fix it.

This reverts commit 1e6d10864e1887856f6bf0e9e59b7603a52f9b79.

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

 src/input/input.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 89f5216..971284b 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2813,8 +2813,6 @@ bool input_AddSubtitles( input_thread_t *p_input, char *psz_subtitle,
     vlc_value_t list;
     char *psz_path, *psz_extension;
 
-    int i_state = p_input->i_state;
-
     if( b_check_extension && !subtitles_Filter( psz_subtitle ) )
     {
         return false;
@@ -2864,7 +2862,6 @@ bool input_AddSubtitles( input_thread_t *p_input, char *psz_subtitle,
             }
             var_Change( p_input, "spu-es", VLC_VAR_FREELIST, &list, NULL );
         }
-        input_ChangeState( p_input, i_state );
     }
     else free( sub );
 




More information about the vlc-devel mailing list