[vlc-commits] ts: remove now dead code
Rémi Denis-Courmont
git at videolan.org
Sun Jun 10 12:10:46 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jun 9 12:08:40 2018 +0300| [67a25bad446c13c816360d54a8a69bba7d21d3f4] | committer: Rémi Denis-Courmont
ts: remove now dead code
The first variable argument of DEMUX_SET_GROUP is now always 0 or -1.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=67a25bad446c13c816360d54a8a69bba7d21d3f4
---
modules/demux/mpeg/ts.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/modules/demux/mpeg/ts.c b/modules/demux/mpeg/ts.c
index 1cc1ec5ee5..54e456a2ae 100644
--- a/modules/demux/mpeg/ts.c
+++ b/modules/demux/mpeg/ts.c
@@ -1071,13 +1071,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
/* Deselect/filter current ones */
ARRAY_RESET( p_sys->programs );
- if( i_int != -1 )
- {
- p_sys->seltype = PROGRAM_LIST;
- ARRAY_APPEND( p_sys->programs, i_int );
- UpdatePESFilters( p_demux, false );
- }
- else if( likely( p_list != NULL ) )
+ if( likely(p_list != NULL) )
{
p_sys->seltype = PROGRAM_LIST;
for( int i = 0; i < p_list->i_count; i++ )
More information about the vlc-commits
mailing list