summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index f8b074b435..13edee735f 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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;