[MPlayer-dev-eng] [PATCH] fix sub_step crash if no subtitles loaded
Antti Hartikainen
ankka+mlist at nelonen.org
Wed Apr 23 16:02:34 CEST 2003
sub_step crashed if no subtitles loaded
-------------- next part --------------
--- find_sub.c 2003-04-23 16:52:01.000000000 +0300
+++ find_sub.c-fixed 2003-04-23 16:52:14.000000000 +0300
@@ -23,9 +23,11 @@
void step_sub(sub_data *subd, float pts, int movement) {
subtitle *subs;
- int key = (pts+sub_delay) * (subd->sub_uses_time ? 100 : sub_fps);
if (subd == NULL) return;
+
+ int key = (pts+sub_delay) * (subd->sub_uses_time ? 100 : sub_fps);
+
subs = subd->subtitles;
/* Tell the OSD subsystem that the OSD contents will change soon */
More information about the MPlayer-dev-eng
mailing list