[vlc-commits] commit: Removed write only variables (ts). (Laurent Aimar )

git at videolan.org git at videolan.org
Tue Jul 6 13:08:21 CEST 2010


vlc/vlc-1.1 | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Jun 28 00:55:32 2010 +0200| [a367b3711a0f25a7074d143fbf543968ea357d89] | committer: Jean-Baptiste Kempf 

Removed write only variables (ts).
(cherry picked from commit 5c040f079afd6b1ae6f78aad680232d4cd1daa04)

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

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

 modules/demux/ts.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 8df74b2..1c289dd 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1280,7 +1280,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
 #endif
     case DEMUX_SET_GROUP:
     {
-        uint16_t i_vpid = 0, i_apid1 = 0, i_apid2 = 0, i_apid3 = 0;
         ts_prg_psi_t *p_prg;
         vlc_list_t *p_list;
 
@@ -1381,15 +1380,6 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
                     {
                         if( pid->p_owner->prg[i_prg]->i_pid_pmt == i_pmt_pid && pid->es->id )
                         {
-                            if ( pid->es->fmt.i_cat == VIDEO_ES && !i_vpid )
-                                i_vpid = i;
-                            if ( pid->es->fmt.i_cat == AUDIO_ES && !i_apid1 )
-                                i_apid1 = i;
-                            else if ( pid->es->fmt.i_cat == AUDIO_ES && !i_apid2 )
-                                i_apid2 = i;
-                            else if ( pid->es->fmt.i_cat == AUDIO_ES && !i_apid3 )
-                                i_apid3 = i;
-
                             stream_Control( p_demux->s,
                                             STREAM_CONTROL_ACCESS,
                                             ACCESS_SET_PRIVATE_ID_STATE,



More information about the vlc-commits mailing list