mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 03:02:53 +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:
parent
82e546da0d
commit
531964aa8d
@ -104,8 +104,6 @@ typedef struct
|
|||||||
int tmf_totalparts;
|
int tmf_totalparts;
|
||||||
} TiVoInfo;
|
} TiVoInfo;
|
||||||
|
|
||||||
off_t vstream_streamsize( );
|
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
#define TMF_SIG "showing.xml"
|
#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
|
// If we haven't figured out the size of the stream, let's do so
|
||||||
// ======================================================================
|
// ======================================================================
|
||||||
#ifdef STREAMTYPE_STREAM_TY
|
if ( demux->stream->type == STREAMTYPE_VSTREAM )
|
||||||
if ( demux->stream->type == STREAMTYPE_STREAM_TY )
|
|
||||||
{
|
{
|
||||||
// The vstream code figures out the exact size of the stream
|
// The vstream code figures out the exact size of the stream
|
||||||
demux->movi_start = 0;
|
demux->movi_start = 0;
|
||||||
demux->movi_end = vstream_streamsize();
|
demux->movi_end = demux->stream->end_pos;
|
||||||
tivo->size = vstream_streamsize();
|
tivo->size = demux->stream->end_pos;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
// If its a local file, try to find the Part Headers, so we can
|
// If its a local file, try to find the Part Headers, so we can
|
||||||
// calculate the ACTUAL stream size
|
// calculate the ACTUAL stream size
|
||||||
|
Loading…
Reference in New Issue
Block a user