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
This commit is contained in:
nicodvb 2006-12-10 17:28:56 +00:00
parent 6c985e22b4
commit 5244303111
1 changed files with 1 additions and 1 deletions

View File

@ -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;