demux_ty: fix "seek to negative position" warning
commit75c394df8fc472c12e63c7677087517380313f0f
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 21 Jan 2011 21:07:57 +0000 (21 23:07 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 21 Jan 2011 21:07:57 +0000 (21 23:07 +0200)
tree4a1b27ac9fcf2dc8e1c100b8494c530bb6260756
parentc0724413fda1152cf422c23f062ed4f4f4088c42
demux_ty: fix "seek to negative position" warning

demux_ty relied on demuxer->filepos being initially set to 0, but
demuxer.c has been changed to initialize it to -1. This caused a
"Invalid seek to negative position!" error message when running the
demux_ty file format check (so it occurred for any file which had not
been recognized as another type before that). Fix by making demux_ty
initialize filepos to 0.
libmpdemux/demux_ty.c