comparison libmpdemux/demux_gif.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 1a889d9a4540
children 92dd1764392a
comparison
equal deleted inserted replaced
36799:b24236587d70 36800:f3c835ddce85
295 // create a new video stream header 295 // create a new video stream header
296 sh_video = new_sh_video(demuxer, 0); 296 sh_video = new_sh_video(demuxer, 0);
297 297
298 // make sure the demuxer knows about the new video stream header 298 // make sure the demuxer knows about the new video stream header
299 // (even though new_sh_video() ought to take care of it) 299 // (even though new_sh_video() ought to take care of it)
300 demuxer->video->id = 0;
300 demuxer->video->sh = sh_video; 301 demuxer->video->sh = sh_video;
301 302
302 // make sure that the video demuxer stream header knows about its 303 // make sure that the video demuxer stream header knows about its
303 // parent video demuxer stream (this is getting wacky), or else 304 // parent video demuxer stream (this is getting wacky), or else
304 // video_read_properties() will choke 305 // video_read_properties() will choke