[Mplayer-cvslog] CVS: main/libmpdemux open.c,1.68,1.69

Filip Kalinski CVS filon at mplayerhq.hu
Sun Jan 12 14:22:28 CET 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv20313/libmpdemux

Modified Files:
	open.c 
Log Message:
Just a small cosmetics to use the singular form in case of 1.


Index: open.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/open.c,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -r1.68 -r1.69
--- open.c	5 Jan 2003 23:51:05 -0000	1.68
+++ open.c	12 Jan 2003 13:22:25 -0000	1.69
@@ -243,8 +243,11 @@
     /**
      * Make sure our title number is valid.
      */
-    mp_msg(MSGT_OPEN,MSGL_INFO, MSGTR_DVDnumTitles,
-             tt_srpt->nr_of_srpts );
+    if (tt_srpt->nr_of_srpts > 1)
+	mp_msg(MSGT_OPEN,MSGL_INFO, MSGTR_DVDnumTitles,
+	       tt_srpt->nr_of_srpts );
+    else
+	mp_msg(MSGT_OPEN,MSGL_INFO, MSGTR_DVDoneTitle);
     if( dvd_title < 1 || dvd_title > tt_srpt->nr_of_srpts ) {
 	mp_msg(MSGT_OPEN,MSGL_ERR, MSGTR_DVDinvalidTitle, dvd_title);
         ifoClose( vmg_file );
@@ -255,8 +258,11 @@
     /**
      * Make sure the chapter number is valid for this title.
      */
-    mp_msg(MSGT_OPEN,MSGL_INFO, MSGTR_DVDnumChapters,
-             tt_srpt->title[dvd_title].nr_of_ptts );
+    if (tt_srpt->title[dvd_title].nr_of_ptts > 1)
+	mp_msg(MSGT_OPEN,MSGL_INFO, MSGTR_DVDnumChapters,
+	       tt_srpt->title[dvd_title].nr_of_ptts );
+    else
+	mp_msg(MSGT_OPEN,MSGL_INFO, MSGTR_DVDoneChapter);
     if( dvd_chapter<1 || dvd_chapter>tt_srpt->title[dvd_title].nr_of_ptts ) {
 	mp_msg(MSGT_OPEN,MSGL_ERR, MSGTR_DVDinvalidChapter, dvd_chapter);
         ifoClose( vmg_file );
@@ -276,8 +282,11 @@
     /**
      * Make sure the angle number is valid for this title.
      */
-    mp_msg(MSGT_OPEN,MSGL_INFO, MSGTR_DVDnumAngles,
-             tt_srpt->title[dvd_title].nr_of_angles );
+    if (tt_srpt->title[dvd_title].nr_of_angles > 1)
+	mp_msg(MSGT_OPEN,MSGL_INFO, MSGTR_DVDnumAngles,
+	       tt_srpt->title[dvd_title].nr_of_angles );
+    else
+	mp_msg(MSGT_OPEN,MSGL_INFO, MSGTR_DVDoneAngle);
     if( dvd_angle<1 || dvd_angle>tt_srpt->title[dvd_title].nr_of_angles ) {
 	mp_msg(MSGT_OPEN,MSGL_ERR, MSGTR_DVDinvalidAngle, dvd_angle);
         ifoClose( vmg_file );



More information about the MPlayer-cvslog mailing list