summaryrefslogtreecommitdiffstats
path: root/core/cfg-mplayer.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-19 23:56:39 +0100
committerwm4 <wm4@nowhere>2013-02-20 00:54:18 +0100
commitbad027277c8106e1f0176d801d6752a4b18df8e6 (patch)
tree9ff73f1438d2bae480884fe1cf2897b438eda1f2 /core/cfg-mplayer.h
parent145c965135dc01869051173007257123df7f0a4b (diff)
downloadmpv-bad027277c8106e1f0176d801d6752a4b18df8e6.tar.bz2
mpv-bad027277c8106e1f0176d801d6752a4b18df8e6.tar.xz
mplayer: don't display "-1" as chapter when chapter seek fails
Increase robustness against out of bound chapter numbers. Normally these functions expect that the callers sanitize the chapter number. This went wrong at least in add_seek_osd_messages() (which displayed a chapter "-1" when chapters were not available). Make these functions a bit friendler and add some reasonable checks and fallbacks, which fixes the mentioned chapter seeking case as well.
Diffstat (limited to 'core/cfg-mplayer.h')
0 files changed, 0 insertions, 0 deletions