Mercurial > mplayer.hg
comparison stream/stream_dvdnav.c @ 29817:b44a41886ed9
Remove unused mp_dvdnav_aid_from_audio_num function
author | reimar |
---|---|
date | Mon, 09 Nov 2009 10:29:15 +0000 |
parents | 94bde7a3ac51 |
children | ab281bcfecb9 |
comparison
equal
deleted
inserted
replaced
29816:94bde7a3ac51 | 29817:b44a41886ed9 |
---|---|
707 | 707 |
708 return -1; | 708 return -1; |
709 } | 709 } |
710 | 710 |
711 /** | 711 /** |
712 * \brief mp_dvdnav_aid_from_audio_num() returns the audio id corresponding to the logical number | |
713 * \param stream: - stream pointer | |
714 * \param audio_num: - logical number | |
715 * \return -1 on error, current subtitle id if successful | |
716 */ | |
717 int mp_dvdnav_aid_from_audio_num(stream_t *stream, int audio_num) { | |
718 dvdnav_priv_t * priv = stream->priv; | |
719 int k; | |
720 uint8_t lg; | |
721 | |
722 for(k=0; k<32; k++) { | |
723 lg = dvdnav_get_audio_logical_stream(priv->dvdnav, k); | |
724 if (lg == 0xff) continue; | |
725 if (lg != audio_num) continue; | |
726 | |
727 return mp_dvdnav_get_aid_from_format (stream, k, lg); | |
728 } | |
729 return -1; | |
730 } | |
731 | |
732 /** | |
733 * \brief mp_dvdnav_aid_from_lang() returns the audio id corresponding to the language code 'lang' | 712 * \brief mp_dvdnav_aid_from_lang() returns the audio id corresponding to the language code 'lang' |
734 * \param stream: - stream pointer | 713 * \param stream: - stream pointer |
735 * \param lang: 2-characters language code[s], eventually separated by spaces of commas | 714 * \param lang: 2-characters language code[s], eventually separated by spaces of commas |
736 * \return -1 on error, current subtitle id if successful | 715 * \return -1 on error, current subtitle id if successful |
737 */ | 716 */ |