[vlc-devel] [PATCH] access/rtp: do not probe every demuxer unless explicitly asked
Filip Roséen
filip at atch.se
Fri Oct 14 16:24:59 CEST 2016
---
modules/access/rtp/rtp.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index be8e82a..decb9e0 100644
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -639,7 +639,12 @@ static void mpv_decode (demux_t *demux, void *data, block_t *block)
*/
static void *ts_init (demux_t *demux)
{
- return stream_init (demux, *demux->psz_demux ? demux->psz_demux : "ts");
+ char const* name = demux->psz_demux;
+
+ if( *name == '\0' || !strcasecmp( name, "any" ) )
+ name = NULL;
+
+ return stream_init (demux, name ? name : "ts");
}
--
2.10.0
More information about the vlc-devel
mailing list