[vlc-devel] commit: Stop es_out before removing demux. (Laurent Aimar )

git version control git at videolan.org
Sun Nov 30 16:52:19 CET 2008


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sat Nov 29 14:03:27 2008 +0100| [d5d6a32a1f7934bc128ae0dc37bcfed9665433c7] | committer: Laurent Aimar 

Stop es_out before removing demux.

It avoids useless es creation every time the current active es is destroyed.

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

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

diff --git a/src/input/input.c b/src/input/input.c
index 8625190..9e48c5c 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1297,6 +1297,10 @@ static void End( input_thread_t * p_input )
     /* Clean control variables */
     input_ControlVarStop( p_input );
 
+    /* Stop es out activity */
+    es_out_Control( p_input->p->p_es_out, ES_OUT_SET_ACTIVE, false );
+    es_out_Control( p_input->p->p_es_out, ES_OUT_SET_MODE, ES_OUT_MODE_NONE );
+
     /* Clean up master */
     InputSourceClean( &p_input->p->input );
 




More information about the vlc-devel mailing list