comparison libmpdemux/open.c @ 14092:5a310666c054

dvd_aid_from_lang() should return -1 if lang was not found
author aurel
date Fri, 03 Dec 2004 14:14:29 +0000
parents 4802041ab8e3
children 8b9738526dd7
comparison
equal deleted inserted replaced
14091:08ad36d32696 14092:5a310666c054
643 } 643 }
644 lang+=2; while (lang[0]==',' || lang[0]==' ') ++lang; 644 lang+=2; while (lang[0]==',' || lang[0]==' ') ++lang;
645 } 645 }
646 mp_msg(MSGT_OPEN,MSGL_WARN,"No matching DVD audio language found!\n"); 646 mp_msg(MSGT_OPEN,MSGL_WARN,"No matching DVD audio language found!\n");
647 } 647 }
648 return d->nr_of_channels ? d->audio_streams[0].id : -1; 648 return -1;
649 } 649 }
650 650
651 int dvd_number_of_subs(stream_t *stream) 651 int dvd_number_of_subs(stream_t *stream)
652 { 652 {
653 dvd_priv_t *d; 653 dvd_priv_t *d;