changeset 21602:ba96ae573d7f

call dvd_lang_from_aid() only if stream_type is DVD
author nicodvb
date Thu, 14 Dec 2006 22:37:13 +0000
parents 9bfe006bef97
children 4bfdaf8bcae5
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Thu Dec 14 22:12:28 2006 +0000
+++ b/mplayer.c	Thu Dec 14 22:37:13 2006 +0000
@@ -1848,7 +1848,7 @@
             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;