[MPlayer-cvslog] r21578 - trunk/mplayer.c

nicodvb subversion at mplayerhq.hu
Sun Dec 10 18:28:56 CET 2006


Author: nicodvb
Date: Sun Dec 10 18:28:56 2006
New Revision: 21578

Modified:
   trunk/mplayer.c

Log:
check that stream_type is DVD before calling dvd_lang_from_aid

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Sun Dec 10 18:28:56 2006
@@ -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;



More information about the MPlayer-cvslog mailing list