comparison mplayer.c @ 29804:edecbb61e41f

Use switch_program property from mplayer.c to set ts_prog. This seems to leave the ts demuxer unaffected, but fixes -tsprog with the lavf demuxer.
author reimar
date Sat, 07 Nov 2009 11:12:56 +0000
parents 7ac1f37f8aa5
children 00ebdb6cb87f
comparison
equal deleted inserted replaced
29803:3b42ce7b09cf 29804:edecbb61e41f
3337 3337
3338 mpctx->d_audio=mpctx->demuxer->audio; 3338 mpctx->d_audio=mpctx->demuxer->audio;
3339 mpctx->d_video=mpctx->demuxer->video; 3339 mpctx->d_video=mpctx->demuxer->video;
3340 mpctx->d_sub=mpctx->demuxer->sub; 3340 mpctx->d_sub=mpctx->demuxer->sub;
3341 3341
3342 if (ts_prog) {
3343 int tmp = ts_prog;
3344 mp_property_do("switch_program", M_PROPERTY_SET, &tmp, mpctx);
3345 }
3342 // select audio stream 3346 // select audio stream
3343 select_audio(mpctx->demuxer, audio_id, audio_lang); 3347 select_audio(mpctx->demuxer, audio_id, audio_lang);
3344 3348
3345 // DUMP STREAMS: 3349 // DUMP STREAMS:
3346 if((stream_dump_type)&&(stream_dump_type<4)){ 3350 if((stream_dump_type)&&(stream_dump_type<4)){