# HG changeset patch # User luran # Date 1072954869 0 # Node ID 4afcdb7b8aab01b5dfff1653be4e748bc882dd77 # Parent ce988d24582ce7e75602e0e3d58c85a137b4c505 fix the crash when seek with 'unknown' subtitles, hopefully... diff -r ce988d24582c -r 4afcdb7b8aab vobsub.c --- a/vobsub.c Wed Dec 31 21:55:05 2003 +0000 +++ b/vobsub.c Thu Jan 01 11:01:09 2004 +0000 @@ -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)