changeset 21562:e655e64087d3

check that stream_type is DVD before calling dvd_lang_from_aid
author nicodvb
date Sun, 10 Dec 2006 17:28:56 +0000
parents 600ae729ba6e
children c08b8066a1c6
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Dec 10 17:28:01 2006 +0000
+++ b/mplayer.c	Sun Dec 10 17:28:56 2006 +0000
@@ -2276,7 +2276,7 @@
             return M_PROPERTY_OK;
         }
 #ifdef USE_DVDREAD
-        if (vo_spudec && dvdsub_id >= 0) {
+        if (vo_spudec && stream->type == STREAMTYPE_DVD && dvdsub_id >= 0) {
             char lang[3];
             int code = dvd_lang_from_sid(stream, dvdsub_id);
                 lang[0] = code >> 8;