From 1b36df0c8597342add338bf4f7669fe44ee52f75 Mon Sep 17 00:00:00 2001 From: nicodvb Date: Thu, 14 Dec 2006 22:37:13 +0000 Subject: 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 --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mplayer.c') diff --git a/mplayer.c b/mplayer.c index 23c5a8e37d..dc82adec0b 100644 --- a/mplayer.c +++ b/mplayer.c @@ -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; -- cgit v1.2.3