diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-10 17:28:56 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-10 17:28:56 +0000 |
commit | 5244303111a1432f3e37d60d0a82081ac3237ddf (patch) | |
tree | e3e7a8cf87b0a4ce76690e94a7041ccf2767d27f /mplayer.c | |
parent | 6c985e22b49432dfaa65498cf8289ece32cdbb97 (diff) | |
download | mpv-5244303111a1432f3e37d60d0a82081ac3237ddf.tar.bz2 mpv-5244303111a1432f3e37d60d0a82081ac3237ddf.tar.xz |
check that stream_type is DVD before calling dvd_lang_from_aid
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21578 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2276,7 +2276,7 @@ static int mp_property_sub(m_option_t* prop,int action,void* arg) { 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; |