[Mplayer-cvslog] CVS: main vobsub.c,1.21,1.22

Arpi of Ize arpi at mplayerhq.hu
Fri Nov 1 01:01:56 CET 2002


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

Modified Files:
	vobsub.c 
Log Message:
The first language ripped is set as the default language
by writing the langidx tag with the index of this language.
patch by Arne Driescher <driescher at mpi-magdeburg.mpg.de>
(accepted by Kim Minh Kaplan)


Index: vobsub.c
===================================================================
RCS file: /cvsroot/mplayer/main/vobsub.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- vobsub.c	17 Oct 2002 15:44:41 -0000	1.21
+++ vobsub.c	1 Nov 2002 00:01:53 -0000	1.22
@@ -1262,8 +1262,11 @@
 	    strcat(filename, ".idx");
 	    result->fidx = fopen(filename, "a");
 	    if (result->fidx) {
-		if (ftell(result->fidx) == 0)
+		if (ftell(result->fidx) == 0){
 		    create_idx(result, palette, orig_width, orig_height);
+                    /* Make the selected language the default language */
+                    fprintf(result->fidx, "\n# Language index in use\nlangidx: %u\n", index);
+		}
 		fprintf(result->fidx, "\nid: %s, index: %u\n", id ? id : "xx", index);
 		/* So that we can check the file now */
 		fflush(result->fidx);




More information about the MPlayer-cvslog mailing list