Mercurial > mplayer.hg
comparison mencoder.c @ 23767:e9d6eda05f00
added support for -alang and -slang with dvdnav:// streams
author | nicodvb |
---|---|
date | Sun, 15 Jul 2007 20:32:19 +0000 |
parents | 44746cbd4e5b |
children | 9ed49a1027f7 |
comparison
equal
deleted
inserted
replaced
23766:f0c2f9de85ba | 23767:e9d6eda05f00 |
---|---|
575 | 575 |
576 #ifdef USE_DVDREAD | 576 #ifdef USE_DVDREAD |
577 if(stream->type==STREAMTYPE_DVD){ | 577 if(stream->type==STREAMTYPE_DVD){ |
578 if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang); | 578 if(audio_lang && audio_id==-1) audio_id=dvd_aid_from_lang(stream,audio_lang); |
579 if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang); | 579 if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=dvd_sid_from_lang(stream,dvdsub_lang); |
580 } | |
581 #endif | |
582 | |
583 #ifdef USE_DVDNAV | |
584 if(stream->type==STREAMTYPE_DVDNAV){ | |
585 if(audio_lang && audio_id==-1) audio_id=dvdnav_aid_from_lang(stream,audio_lang); | |
586 if(dvdsub_lang && dvdsub_id==-2) dvdsub_id=dvdnav_sid_from_lang(stream,dvdsub_lang); | |
580 } | 587 } |
581 #endif | 588 #endif |
582 | 589 |
583 stream->start_pos+=seek_to_byte; | 590 stream->start_pos+=seek_to_byte; |
584 | 591 |