comparison libmpdemux/demux_rawdv.c @ 36800:f3c835ddce85

demuxers: ensure that stream ids are correctly initialized. This should fix missing video after r36778 and potentially other issues in relation with video stream switching.
author reimar
date Wed, 19 Feb 2014 23:01:15 +0000
parents 1b0d31ceb2ec
children 92dd1764392a
comparison
equal deleted inserted replaced
36799:b24236587d70 36800:f3c835ddce85
168 goto err_out; 168 goto err_out;
169 169
170 // make sure the demuxer knows about the new video stream header 170 // make sure the demuxer knows about the new video stream header
171 // (even though new_sh_video() ought to take care of it) 171 // (even though new_sh_video() ought to take care of it)
172 demuxer->seekable = 1; 172 demuxer->seekable = 1;
173 demuxer->video->id = 0;
173 demuxer->video->sh = sh_video; 174 demuxer->video->sh = sh_video;
174 175
175 // make sure that the video demuxer stream header knows about its 176 // make sure that the video demuxer stream header knows about its
176 // parent video demuxer stream (this is getting wacky), or else 177 // parent video demuxer stream (this is getting wacky), or else
177 // video_read_properties() will choke 178 // video_read_properties() will choke