Commit a73c1e41 authored by Laurent Aimar's avatar Laurent Aimar

Restore extension detection (ty and ty+)

parent fb60ee52
......@@ -218,7 +218,9 @@ static int Open(vlc_object_t *p_this)
U32_AT(&p_peek[4]) != 0x02 ||
U32_AT(&p_peek[8]) != CHUNK_SIZE )
{
if( !p_demux->b_force )
if( !p_demux->b_force &&
!demux2_IsPathExtension( p_demux, ".ty" ) &&
!demux2_IsPathExtension( p_demux, ".ty+" ) )
return VLC_EGENERIC;
msg_Warn( p_demux, "this does not look like a TY file, "
"continuing anyway..." );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment