[MPlayer-cvslog] r37955 - trunk/mplayer.c
al
subversion at mplayerhq.hu
Sat Sep 9 17:56:52 EEST 2017
Author: al
Date: Sat Sep 9 17:56:52 2017
New Revision: 37955
Log:
mplayer: Fix audio-only seeking
Check if sh_video exists before reading and setting video
frame time.
Regression since r37953, which fixed ticket #2331. I tested
that the fix of #2331 still works after this change.
Fixes ticket #2332
Modified:
trunk/mplayer.c
Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c Thu Sep 7 01:05:41 2017 (r37954)
+++ trunk/mplayer.c Sat Sep 9 17:56:52 2017 (r37955)
@@ -4034,7 +4034,7 @@ goto_enable_cache:
}
// reset last frame marker
- if (mpctx->sh_video->frametime < 0)
+ if (mpctx->sh_video && mpctx->sh_video->frametime < 0)
mpctx->sh_video->frametime = 1.0f / mpctx->sh_video->fps;
rel_seek_secs = 0;
abs_seek_pos = 0;
More information about the MPlayer-cvslog
mailing list