1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 12:02:39 +00:00

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
This commit is contained in:
reimar 2010-06-14 20:11:44 +00:00 committed by Uoti Urpala
parent 82e546da0d
commit 531964aa8d

View File

@ -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