[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.49,1.50

Moritz Bunkus CVS syncmail at mplayerhq.hu
Wed May 5 23:05:38 CEST 2004


CVS change done by Moritz Bunkus CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv6167

Modified Files:
	demux_ogg.c 
Log Message:
Be more verbose and tell the user which subtitle stream has been selected (if any).

Index: demux_ogg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- demux_ogg.c	29 Apr 2004 21:01:09 -0000	1.49
+++ demux_ogg.c	5 May 2004 21:05:36 -0000	1.50
@@ -440,7 +440,7 @@
       if (os->text && d->sub->id == -1 && demux_ogg_check_lang(val, dvdsub_lang))
       {
 	d->sub->id = id;
-	mp_msg(MSGT_DEMUX, MSGL_V, "Stream language matched -slang: %s\n", val);
+        mp_msg(MSGT_DEMUX, MSGL_V, "OGG demuxer: Displaying the subtitle stream with the id %d which matched -slang %s\n", id, val);
       }
       else
 	hdr = "Language";
@@ -966,8 +966,10 @@
      packet is encountered and the user used -slang instead of -sid. */
   if(!n_text)
     demuxer->sub->id = -2;
-  else if (text_id >= 0)
+  else if (text_id >= 0) {
     demuxer->sub->id = text_id;
+    mp_msg(MSGT_DEMUX, MSGL_V, "OGG demuxer: Displaying the subtitle stream with the id %d\n", text_id);
+  }
 
   ogg_d->final_granulepos=0;
   if(!s->end_pos)




More information about the MPlayer-cvslog mailing list