From d8f4d25d0b8cbc5e4d9a6b2c1a5ee22442faff88 Mon Sep 17 00:00:00 2001 From: aurel Date: Fri, 3 Dec 2004 14:14:29 +0000 Subject: [PATCH] dvd_aid_from_lang() should return -1 if lang was not found git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14093 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/open.c b/libmpdemux/open.c index 50ae30e707..dfbde8c877 100644 --- a/libmpdemux/open.c +++ b/libmpdemux/open.c @@ -645,7 +645,7 @@ if(lang){ } mp_msg(MSGT_OPEN,MSGL_WARN,"No matching DVD audio language found!\n"); } -return d->nr_of_channels ? d->audio_streams[0].id : -1; +return -1; } int dvd_number_of_subs(stream_t *stream)