[Mplayer-cvslog] CVS: main vobsub.c,1.37,1.38

hephooey CVS luran at mplayerhq.hu
Thu Jan 1 12:01:11 CET 2004


Update of /cvsroot/mplayer/main
In directory mail:/tmp/cvs-serv1278

Modified Files:
	vobsub.c 
Log Message:
fix the crash when seek with 'unknown' subtitles, hopefully...


Index: vobsub.c
===================================================================
RCS file: /cvsroot/mplayer/main/vobsub.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- vobsub.c	28 Dec 2003 00:43:21 -0000	1.37
+++ vobsub.c	1 Jan 2004 11:01:09 -0000	1.38
@@ -1274,6 +1274,9 @@
   int seek_pts100 = (int)pts * 90000;
 
   if (vob->spu_streams && 0 <= vobsub_id && (unsigned) vobsub_id < vob->spu_streams_size) {
+    /* do not seek if we don't know the id */
+    if (vobsub_get_id(vob, vobsub_id) == NULL)
+	    return;
     queue = vob->spu_streams + vobsub_id;
     queue->current_index = 0;
     while ((queue->packets + queue->current_index)->pts100 < seek_pts100)




More information about the MPlayer-cvslog mailing list