git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb60ee5
)
Restore extension detection (ty and ty+)
author
Laurent Aimar
<fenrir@videolan.org>
Sat, 13 Oct 2007 20:30:22 +0000
(20:30 +0000)
committer
Laurent Aimar
<fenrir@videolan.org>
Sat, 13 Oct 2007 20:30:22 +0000
(20:30 +0000)
modules/demux/ty.c
patch
|
blob
|
history
diff --git
a/modules/demux/ty.c
b/modules/demux/ty.c
index
22f1d4f
..
deb6589
100644
(file)
--- a/
modules/demux/ty.c
+++ b/
modules/demux/ty.c
@@
-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..." );