demux_demuxers: initialize stream_pts to MP_NOPTS_VALUE

demux_demuxers doesn't run the normal demuxer.c initialization for new
demuxers. Initialize stream_pts separately (it won't ever be changed
with the current implementation). This at least avoids other code
assuming it was set properly.
This commit is contained in:
Uoti Urpala 2010-11-08 02:02:21 +02:00
parent 9a663ffec6
commit 82cd2f7aec
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ demuxer_t* new_demuxers_demuxer(demuxer_t* vd, demuxer_t* ad, demuxer_t* sd) {
// Video is the most important :-)
ret->stream = vd->stream;
ret->seekable = vd->seekable && ad->seekable && sd->seekable;
ret->stream_pts = MP_NOPTS_VALUE;
ret->video = vd->video;
ret->audio = ad->audio;