call dvd_lang_from_aid() only if stream_type is DVD

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21618 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-12-14 22:37:13 +00:00
parent b24971e15f
commit 1b36df0c85
1 changed files with 1 additions and 1 deletions

View File

@ -1848,7 +1848,7 @@ static int mp_property_audio(m_option_t* prop,int action,void* arg) {
if (demuxer->type == DEMUXER_TYPE_MATROSKA)
demux_mkv_get_audio_lang(demuxer, audio_id, lang, 9);
#ifdef USE_DVDREAD
else {
else if(stream->type == STREAMTYPE_DVD) {
int code = dvd_lang_from_aid(stream, audio_id);
if (code) {
lang[0] = code >> 8;