summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-06-14 20:11:44 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:10:10 +0200
commit531964aa8d4d6c1c1de8b2dc30f9dd186b82bdea (patch)
tree4bf17026486fccd50c3cf3fa411bcc6cc74973c3 /libmpdemux
parent82e546da0db147183ef25e2c1e18f295c622e04f (diff)
downloadmpv-531964aa8d4d6c1c1de8b2dc30f9dd186b82bdea.tar.bz2
mpv-531964aa8d4d6c1c1de8b2dc30f9dd186b82bdea.tar.xz
demux_ty: Cleanup some code, possibly fix vstream support (untested)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31423 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_ty.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libmpdemux/demux_ty.c b/libmpdemux/demux_ty.c
index 3e27be5817..6f22a4bbff 100644
--- a/libmpdemux/demux_ty.c
+++ b/libmpdemux/demux_ty.c
@@ -104,8 +104,6 @@ typedef struct
int tmf_totalparts;
} TiVoInfo;
-off_t vstream_streamsize( );
-
// ===========================================================================
#define TMF_SIG "showing.xml"
@@ -361,16 +359,14 @@ static int demux_ty_fill_buffer( demuxer_t *demux, demux_stream_t *dsds )
// ======================================================================
// If we haven't figured out the size of the stream, let's do so
// ======================================================================
-#ifdef STREAMTYPE_STREAM_TY
- if ( demux->stream->type == STREAMTYPE_STREAM_TY )
+ if ( demux->stream->type == STREAMTYPE_VSTREAM )
{
// The vstream code figures out the exact size of the stream
demux->movi_start = 0;
- demux->movi_end = vstream_streamsize();
- tivo->size = vstream_streamsize();
+ demux->movi_end = demux->stream->end_pos;
+ tivo->size = demux->stream->end_pos;
}
else
-#endif
{
// If its a local file, try to find the Part Headers, so we can
// calculate the ACTUAL stream size